public static String removeLeadingDelimiter(String str, String delimiter) {
        if (!str.startsWith(delimiter)) {
            return str;
        } else {
            return str.substring(delimiter.length(), str.length());
        }
    }
public static String removeLeadingDelimiter ( String str , String delimiter ) { if ( ! str . startsWith ( delimiter ) ) { return str ; } else { return str . substring ( delimiter . length ( ) , str . length ( ) ) ; } }
Removes the leading delimiter from a string.

@param str String to process.
@param delimiter Delimiter to remove.
@return The string with the leading delimiter removed.