If the old cord is still attached, super glue the proper sized bead thread (from a craft store) to the broken end, slip the spring in the tuning drum off the old cord and pull the new in with the old. Terminate the new ends and then put the spring back on.
Tom