question: 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 ; }
target:  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.