public static String stripLeadingChar ( final String string , final char c ) { if ( string . length ( ) > 0 ) { if ( string . charAt ( 0 ) == c ) { return string . substring ( 1 ) ; } } return string ; }
Strips leading char if string starts with one .