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 .