Check if the string str is uppercase
str
static bool isUppercase(String str) { return str == str.toUpperCase(); }