Added LOWER-CASE-P UPPER-CASE-P and BOTH-CASE-P with tests.