StringBuffer might be better for construct fq if this method is called a lot for searches.