Add a parameter to fromString which allows the exactness to be set externally