Added doctest to fromString