Improve Aho-Corasick automaton printing