Implement correct parsing of quotes