private String cleanToken(String token){
  token=token.replace("(","");
  token=token.replace(")","");
  token=token.replace("[","");
  token=token.replace("]","");
  token=token.replace("!","");
  token=token.replace("?","");
  token=token.replace(",","");
  token=token.replace(".","");
  token=token.replace(":","");
  token=token.replace(";","");
  return token;
}

private String cleanToken ( String token ) { token = token . replace ( "(" , "" ) ; token = token . replace ( ")" , "" ) ; token = token . replace ( "[" , "" ) ; token = token . replace ( "]" , "" ) ; token = token . replace ( "!" , "" ) ; token = token . replace ( "?" , "" ) ; token = token . replace ( "," , "" ) ; token = token . replace ( "." , "" ) ; token = token . replace ( ":" , "" ) ; token = token . replace ( ";" , "" ) ; return token ; }
removes special characters that may be attached to tokens like parantheses , braces , punctuation etc .
