code: 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;
      }
docs: Checks if the given string contains whitespace.
  
  @param string
  @return true if the given string contains space char.
  @since 3.0.1
  @author WFF