public static boolean isBlank(String str) {
        return str == null || str.trim().isEmpty();
    }
Checks if a string is null, empty or whitespace only.
@param str a string to be checked
@return true if the string is null, empty or whitespace only; otherwise, return false.
clients/src/main/java/org/apache/kafka/common/utils/Utils.java