src/org/ohmage/util/StringUtils.java
public static boolean isEmptyOrWhitespaceOnly(String string) {
		
		return null == string || "".equals(string.trim()); 
		
	}
/**
	 * Checks for a null or empty (zero-length or all whitespace) String.
	 * 
	 * A method with the same signature and behavior as this one exists in the MySQL JDBC code. That method is not used outside 
	 * of the data layer of this application in order to avoid unnecessary dependencies i.e., AW utility classes should not
	 * depend on a third-party data access lib.
	 * 
	 * @return true if the String is null, empty, or all whitespace
	 *         false otherwise
	 */
Checks for a null or empty (zero-length or all whitespace) String.

A method with the same signature and behavior as this one exists in the MySQL JDBC code. That method is not used outside
of the data layer of this application in order to avoid unnecessary dependencies i.e., AW utility classes should not
depend on a third-party data access lib.

@return true if the String is null, empty, or all whitespace
false otherwise
Checks for a null or empty ( zero - length or all whitespace ) String . A method with the same signature and behavior as this one exists in the MySQL JDBC code . That method is not used outside of the data layer of this application in order to avoid unnecessary dependencies i . e . AW utility classes should not depend on a third - party data access lib . @return true if the String is null empty or all whitespace false otherwise
public static boolean isEmptyOrWhitespaceOnly(String string) {
		return null == string || "".equals(string.trim()); 
	}
public static boolean isEmptyOrWhitespaceOnly ( String string ) { return null == string || "" . equals ( string . trim ( ) ) ; }
Checks for a null or empty (zero-length or all whitespace) String.
Checks for a null or empty ( zero - length or all whitespace ) String .