Use temporary state string in query

Hi there.
On checkbox component I setValue of temporary state to ''where not pst.id = 1" when false and " " when true.
I'd like to use these values in a query. However it seems to be loading the string with the " .
Is there a way to make it insert on the string without the " ?
Thanks

@jason3w Can you post a screenshot of the temp state value and the query?