Rewriting sentences with appropriate punctuation marks