adding chapter 6 programs

lots more string manipulations