It turns out that I can use:
: set_string var = "name" text = "string";
: set_string var = "name" {("string")}
But I can't use:
: set_string var = "name" "string";
: set_string var = "name" text = {("string")}
I had tried using the last form and that's why it wasn't working.