BZ-13970 Add 'removeFromEnd' function to String.