public static boolean isNullOrWhitespace(String string) {

		boolean result = true;
		if(string != null) {
			if(string.length() != 0) {
				String trimmed = string.trim();
				if(trimmed.length() != 0) {
					result = false;
				}
			}
		}

		return result;
	}