Charles replied:

Yes, I believe it can be trusted with a variable. I've used this form to receive a variable number of characters based on a length parameter received immediately prior to the string:

[wait($80),length,STR idstring\length]


So officially it is valid syntax.

Ioannis