public static String truncate(final String value,final int length,final String filler){
  validate(value,NULL_STRING_PREDICATE,NULL_STRING_MSG_SUPPLIER);
  if (length == 0) {
    return "";
  }
  if (length >= value.length()) {
    return value;
  }
  return append(value.substring(0,length - filler.length()),filler);
}

public static String truncate ( final String value , final int length , final String filler ) { validate ( value , NULL_STRING_PREDICATE , NULL_STRING_MSG_SUPPLIER ) ; if ( length == 0 ) { return "" ; } if ( length >= value . length ( ) ) { return value ; } return append ( value . substring ( 0 , length - filler . length ( ) ) , filler ) ; }
truncate the unsecured form string , cutting the independent string of required position .
