public String crop(String string){
  if ((null == string) || (string.length() <= effectiveStringLength)) {
    return string;
  }
  if (effectiveStringLength == 0) {
    return "";
  }
  String cropped=string.substring(0,effectiveStringLength);
  if (USE_TRAILING_DOTS) {
    cropped=appendTrailingDots(cropped);
  }
  return cropped;
}

public String crop ( String string ) { if ( ( null == string ) || ( string . length ( ) <= effectiveStringLength ) ) { return string ; } if ( effectiveStringLength == 0 ) { return "" ; } String cropped = string . substring ( 0 , effectiveStringLength ) ; if ( USE_TRAILING_DOTS ) { cropped = appendTrailingDots ( cropped ) ; } return cropped ; }
crops the given string based on this instance ' s configuration . if the string is shorter than the specified string length the given string is not altered .
