Checks for punctuation in file and input