jodd-core/src/main/java/jodd/util/StringUtil.java
public static String stripFromChar(final String string, final char c) {
		int ndx = string.indexOf(c);

		if (ndx == -1) {
			return string;
		}

		return string.substring(0, ndx);
	}
public static String stripFromChar(final String string, final char c) {
		int ndx = string.indexOf(c);

		if (ndx == -1) {
			return string;
		}

		return string.substring(0, ndx);
	}
public static String stripFromChar ( final String string , final char c ) { int ndx = string . indexOf ( c ) ; if ( ndx == - 1 ) { return string ; } return string . substring ( 0 , ndx ) ; }
Strips everything from the first appearance of given char.
Character IS NOT included in the returned string.
Strips everything from the first appearance of given char . Character IS NOT included in the returned string .