Another thought. Where did your old string break? If it broke past the nut and if you haven't already thrown it out (and hasn't unraveled and lost it's tight wind), you can do a wire knot. I know that sounds crazy but I've done this with old strings that had a sound I liked and were out of production. It is easy to do, solid as a rock and doesn't slip --- Piano Tuners do this when a piano string snaps because one new string sounds too different from the rest.
This knot works without slipping because the more tension you put on it, the tighter it grips.
I've done this on G strings that were cut for a 2+2 and I was putting on a 4 in line headstock.
View attachment 3920029