Parser for strings to handle date parsing.