check for end punctuation