chapter 12 exercise 12-11: reimplemnet character picture and split functions to use Str class defined in this chapter instead of the built-in string class