public static String stripPrefix(String str,String prefix){
  return str.startsWith(prefix) ? str.substring(prefix.length()) : null;
}

public static String stripPrefix ( String str , String prefix ) { return str . startsWith ( prefix ) ? str . substring ( prefix . length ( ) ) : null ; }
give me a string and a potential prefix , and i return the string following the prefix if the prefix matches , else null . analogous to the c + + functions strprefix and var_strprefix .
