chapter 12 exercise 12-6: define Str to bool conversion operator