Thanks Nick, I have read but little understood the quotation nesting
guidelines.
I tried your suggestion, but when I surround the double quotes with `' the
command is not executed. And when I tried the same on the quotes for the
two string variables (e.g. inlist(var3, `"string1"', `"string2"')) it said
"too few quotes").
Compound quotes are allowed to surround pairs of simple quotes, but simple
quotes are not allowed to surround pairs of compound quotes. The example
below demonstrates this in the -auto- data.