Fix wildcards in the middle of strings