public static String after(String s,String token){
  if (s == null) {
    return null;
  }
  int i=s.indexOf(token);
  if (i == -1) {
    return s;
  }
  return s.substring(i + token.length());
}

public static String after ( String s , String token ) { if ( s == null ) { return null ; } int i = s . indexOf ( token ) ; if ( i == - 1 ) { return s ; } return s . substring ( i + token . length ( ) ) ; }
returns the part of s after the token . < p / > < br / > example : after ( " helloworldthisisme " , " world " ) will return " thisisme " . < br / > example : after ( " helloworldthisisme " , " dog " ) will return null .
