code: public static boolean isEmpty(final String aString) {
          boolean result = true;
  
          if (aString != null) {
              for (int index = 0; index < aString.length(); index++) {
                  if (!Character.isWhitespace(aString.charAt(index))) {
                      result = false;
                      break;
                  }
              }
          }
  
          return result;
      }
docs: Returns true if the supplied string is null, empty, or contains nothing but whitespace.
  
  @param aString A string to test to see if it is null, empty or contains nothing but whitespace
  @return True if the supplied string is empty; else, false