question: public static String trimEnd ( String value , int length ) { if ( value == null || length > value . length ( ) ) { return EMPTY ; } return value . substring ( 0 , value . length ( ) - length ) ; }
target:  Trims the given string from the end.