Called the incorrect function when handling quotation marks