update mock filter logic to better match strings by removing punctuation