fixed punctuation check