fixed bug in 'where' method where strings were not being correctly passed to API