Abstracts tokenization out of the Text class.