properly tokenize quotes