The analytical solutions for the wave propagation in a stretched string with a moving mass