public static String removeRight ( final String value , final String suffix ) { return removeRight ( value , suffix , true ) ; }
Returns a new string with the suffix removed if present . Search is case sensitive .