I don't see anything wrong, so look for the usual suspect: a bracket mismatch. Hit the {} key to see if there is one.

Btw, your $_qt/$_noqt aren't correct wink
Check
//echo -a $qt("abc")
and
//echo -a $noqt(a"b""c"d)
to see why