Check if the string str is lowercase
str
static bool isLowercase(String str) { return str == str.toLowerCase(); }