fixed fromString api call in docs

fixed minor documentation discrepancy