public static boolean isNonBlankString(final String str) {
        // GWT doesn't emulate String::isBlank
        if (str != null && !str.isEmpty()) {
            for (final char chr : str.toCharArray()) {
                if (!Character.isWhitespace(chr)) {
                    return true;
                }
            }
        }
        return false;
    }
@return True if str is non-null and has at least one character that is not
whitespace
stroom-util-shared/src/main/java/stroom/util/shared/NullSafe.java