parser Function to parse input string from the user in numeric and ‘unit’ parts. Source: ph_units/parser.py