enhancing wildcard pattern converter method.