check if the string str is uppercase
str
bool isUpperCase(String str) { return str == str.toUpperCase(); }