Wildcard Matching: using backtrack