handle null values strings inside insert query functions