Query helper will format string to be SQL compliant