junit-servers-core/src/main/java/com/github/mjeanroy/junit/servers/commons/Strings.java
public static String removePrefix(String value, String prefix) {
		if (value == null || prefix == null || prefix.length() > value.length()) {
			return value;
		}

		return value.startsWith(prefix) ? value.substring(prefix.length()) : value;
	}
public static String removePrefix(String value, String prefix) {
		if (value == null || prefix == null || prefix.length() > value.length()) {
			return value;
		}

		return value.startsWith(prefix) ? value.substring(prefix.length()) : value;
	}
public static String removePrefix ( String value , String prefix ) { if ( value == null || prefix == null || prefix . length ( ) > value . length ( ) ) { return value ; } return value . startsWith ( prefix ) ? value . substring ( prefix . length ( ) ) : value ; }
Remove string prefix if and only if string value starts with
the prefix, otherwise original string is returned.

@param value String value.
@param prefix String prefix.
@return New string.
Remove string prefix if and only if string value starts with the prefix otherwise original string is returned .