fixed fromString api call in docs