bug fix for pass in query

caused when adding in isString. My bad.