Class Text refactored as Tokenizer.