chapter 12 exercise 12-3: implement relational operators for Str class