Just set query fields to NULL if the strings are zerolength