code: public static StringBuilder removeLast(final StringBuilder builder, final String string) {
  		final int lastIndexOf = builder.lastIndexOf(string);
  		if (lastIndexOf == -1) {
  			return builder;
  		}
  		return new StringBuilder(builder.substring(0, lastIndexOf));
  	}
docs: //////////////////////////////////////////////////////////////////////////////////////////