public static String fixQueryMistakes(String q){
  q=q.replaceAll("hashtag:","#");
  q=q.replaceAll(" AND "," ");
  return q;
}

public static String fixQueryMistakes ( String q ) { q = q . replaceAll ( "hashtag:" , "#" ) ; q = q . replaceAll ( " AND " , " " ) ; return q ; }
fixing a query mistake covers most common wrong queries from the user
