half implementation of match, singleWildCard works