Strip only a limited set of punctuations before matching.