add solution for wildcard matching