src/org/ohmage/validator/UserValidators.java
public static Set<String> validateFirstNameSearch(
			final String value)
			throws ValidationException {
		
		if(StringUtils.isEmptyOrWhitespaceOnly(value)) {
			return null;
		}
		
		return StringUtils.decodeSearchString(value);
	}
/**
	 * If the value is null or only whitespace, null is returned. Otherwise, it
	 * tokenizes the search string by whitespace with the exception of quoted
	 * characters whose entire quoted value is returned.
	 * 
	 * @param value The search string to be tokenized.
	 * 
	 * @return Returns null if the value is null or whitespace only; otherwise,
	 * 		   it returns the set of search tokens.
	 */
If the value is null or only whitespace, null is returned. Otherwise, it
tokenizes the search string by whitespace with the exception of quoted
characters whose entire quoted value is returned.

@param value The search string to be tokenized.

@return Returns null if the value is null or whitespace only; otherwise,
it returns the set of search tokens.
If the value is null or only whitespace null is returned . Otherwise it tokenizes the search string by whitespace with the exception of quoted characters whose entire quoted value is returned . @param value The search string to be tokenized . @return Returns null if the value is null or whitespace only ; otherwise it returns the set of search tokens .
public static Set<String> validateFirstNameSearch(
			final String value)
			throws ValidationException {
		if(StringUtils.isEmptyOrWhitespaceOnly(value)) {
			return null;
		}
		return StringUtils.decodeSearchString(value);
	}
public static Set < String > validateFirstNameSearch ( final String value ) throws ValidationException { if ( StringUtils . isEmptyOrWhitespaceOnly ( value ) ) { return null ; } return StringUtils . decodeSearchString ( value ) ; }
If the value is null or only whitespace, null is returned.
If the value is null or only whitespace null is returned .