Fix fromString() conversion bug
Merge pull request #3 from chippyash/bug/fromString_not_rejecting_non_fraction

Fixed `fromString()` conversion bug due to incorrect `\preg_match` return value handling.