Remove asterisk and hash from matching urn wildcards