fix punctuation in quote logic