filter punctuation from the input string