In this paper we review the recent progress in the (indefinite) string density problem and its applications to the Camassa--Holm equation.