Parser for strings to handle url parsing.