Chapter 5 self test

This looks a bit odd if you start to have uppercase characters (FWICR). I mixed the use of `compareTo()` and `compareToIgnoreCase()`