handle wildcard
added missing else case
default are escaped strings, if we need wildcards we need to set it by hand