protected String stripKnownPrefix ( String str , String prefix ) { int startIndex = str . lastIndexOf ( prefix ) ; if ( startIndex != - 1 ) { return str . substring ( startIndex + prefix . length ( ) ) ; } return null ; }
Strip everything up to and including a given prefix from a string .