src/main/java/org/jboss/seam/examples/seamcrm/tools/StringTools.java
public static String normalize(String value) {
        if (StringTools.isNullOrBlank(value)) {
            return null;
        } else {
            return value.trim();
        }
    }
/**
     * Takes a String and removes whitespace. Returns null if empty.
     * 
     * @param value
     * @return
     */
Takes a String and removes whitespace. Returns null if empty.

@param value
@return
Takes a String and removes whitespace . Returns null if empty . @param value @return
public static String normalize(String value) {
        if (StringTools.isNullOrBlank(value)) {
            return null;
        } else {
            return value.trim();
        }
    }
public static String normalize ( String value ) { if ( StringTools . isNullOrBlank ( value ) ) { return null ; } else { return value . trim ( ) ; } }
Takes a String and removes whitespace.
Takes a String and removes whitespace .