Spectral problems are considered which appear in description of small transversal vibrations of Stieltjes strings. It is shown that the eigenvalues of the Neumann-Neumann problem, i.e. the problem with the Neumann conditions at both ends of the string interlace with the union of the spectra of the Neumann-Dirichlet problems, i.e. problems with the Neumann condition at one end and Dirichlet condition at the other end on two parts of the string. It is shown that the spectrum of Neumann-Neumann problem on the whole string, the spectrum of Neumann-Dirichlet problem on the left part of the string, all but one eigenvalues of the Neumann-Dirichlet problem on the right part of the string and total masses of the parts uniquely determine the masses and the intervals between them.