public static String after(String line,String charSequence){
  int pos=line.indexOf(charSequence);
  if (pos != -1) {
    line=line.substring(pos + charSequence.length());
  }
  return line.trim();
}

public static String after ( String line , String charSequence ) { int pos = line . indexOf ( charSequence ) ; if ( pos != - 1 ) { line = line . substring ( pos + charSequence . length ( ) ) ; } return line . trim ( ) ; }
returns the rest of the string after the charsequence .
