Krein's strings whose spectral functions are of polynomial growth