updated singleWildcardMatch