remove space before punctuation in generated sentence, capitalize words that begin a sentence in generated sentence