The Tokenizer class allows us to split an string into tokens. Unlike other classes, it is based on regular patterns.