The wave travels towards right with the speed c = √ f / ρ without being actively constraint by the boundary conditions at the two extremes of the string. The shape of the wave is constant, i.e. the curve is indeed of the form f (x − ct).