Match a string with wildcard pattern recursively | Citadel