Updated the where clause generator to properly enclose strings in quotes