public static String max( String string, int maxLength )
    {
        if ( string == null ) {
            return EMPTY;
        }
        if ( maxLength < 0 ) {
            maxLength = 0;
        }
        if ( string.length() < maxLength ) {
            return EMPTY + string;
        }
        return string.substring( 0, maxLength );
    }