Use an electronic tuner and pull your "tuned" new string out away from the twelfth fret about and inch and a half then retune and repeat till they stay where you want 'em. Take care when wrapping, use three or four wraps and with no overlaps. Works everytime. (Except on nylon strings which IMHO should only be used when fishing...)