ignore whitespace and punctuation for string matching