aqString.StrMatches only works with hard-coded strings. Seriously???
The following statement returns a boolean value as stated in the product documentation for aqString.StrMatches: result = aqString.StrMatches("dog", "The quick brown fox jumps over the lazy dogs...
Ok, just as a matter of interest, could you try copying the function in my original post, testStrMatches(), into Test Complete and running it, just to see if it works?