Fixed bug in wfGeneralizeSQL() that caused strings in some queries to remain