public static final String compact(String name) {
        Set<String> parts = new LinkedHashSet<String>();
        for (String part : name.split(SPLITTER_REGEX)) {
            parts.add(part);
        }
        return join(parts,"");
    }
public static final String compact ( String name ) { Set < String > parts = new LinkedHashSet < String > ( ) ; for ( String part : name . split ( SPLITTER_REGEX ) ) { parts . add ( part ) ; } return join ( parts , "" ) ; }
Remove repeating strings that are appearing in the name.
This is done by splitting words (camel case) and using each word once.
@param name  The name to compact.
@return      The compact name.