public static boolean hasLength(String str) {
        return hasLength((CharSequence) str);
    }
Check that the given String is neither {@code null} nor of length 0.
Note: Will return {@code true} for a String that purely consists of whitespace.

@param str the String to check (may be {@code null})
@return {@code true} if the String is not null and has length
@see #hasLength(CharSequence)
src/main/java/spark/utils/StringUtils.java