Computer programs do more than crunch numbers. They communicate with the end user. This is what text strings are for: they contain human-readable information made up of printable characters. One of the most important tasks of programs is tokenization—breaking down a line of input into individual words.
In this chapter, we’re going to get inside of strings and show how to efficiently pull them apart and put them together.
Stripping trailing and leading spaces
Splitting lines of input (tokenization)