New function wildCardMatch