Add option to restrict Aho-Corasick matches by boundary characters.