Parses the given input string as T using this format.
if the input string is not in the expected format or the value is invalid.