Updated details section to check for invalid values before parsing.
Updated details section to check for invalid values before parsing.