Make the pretty-printing junk lighter weight. Implement the find_first/last_not_of family of searches.
Reorganize main() a bit.