wffweb/src/main/java/com/webfirmframework/wffweb/util/StringUtil.java
public static boolean containsWhitespace(final String string) {

        for (int i = 0; i < string.length(); i++) {
            if (Character.isWhitespace(string.charAt(i))) {
                return true;
            }
        }

        return false;
    }
public static boolean containsWhitespace(final String string) {

        for (int i = 0; i < string.length(); i++) {
            if (Character.isWhitespace(string.charAt(i))) {
                return true;
            }
        }

        return false;
    }
public static boolean containsWhitespace ( final String string ) { for ( int i = 0 ; i < string . length ( ) ; i ++ ) { if ( Character . isWhitespace ( string . charAt ( i ) ) ) { return true ; } } return false ; }
Checks if the given string contains whitespace.

@param string
@return true if the given string contains space char.
@since 3.0.1
@author WFF
Checks if the given string contains whitespace .