Aho-Corasick with wildcards