public static boolean isWhitespace(final String string) {
    final int string_length = string.length();
    if (string_length == 0)
      return false;
    for (int i = 0; i < string_length; i++) {
      if (! Character.isWhitespace(string.charAt(i)))
        return false;
    }
    return true;
  }