How to evaluate str so it prints "test that string"?
Coldfusion wouldn't evaluate a tag that is part of a string.
Use the functions iif() and de(). Your str should be something like
<cfset str = "test " & iif(1 EQ 0, de("this"),
de("that")) & " string">