Style cleanup to AhoCorasick implementation.