Parser for strings to handle file path parsing.