Strips whitespace and punctuation from input