The Riemann problem for the planar motion of an elastic string