Made a new function for checking punctuation