Since from_str functions will be mainly used to parse user input, they should return optional types instead of failing on malformed input.