Tree-Like functionality for text input.