code: public static boolean empty(final String aString) {
  		if (aString != null) {
  			final int len = aString.length();
  
  			for (int i = 0; i < len; i++) {
  				// This mirrors String.trim(), which removes ASCII
  				// control characters as well as whitespace.
  				if (aString.charAt(i) > ' ') {
  					return false;
  				}
  			}
  		}
  
  		return true;
  	}
docs: Determines whether the given string is null or "empty".
  
  @param aString the string to check.
  @return true if the given String is null or contains only whitespace.