Adding nesting structure to words
Tree Automata Techniques and Applications