Getting AppleScript function to pass string correctly

Solution 1:

If you are going to call a handler from within an application's tell block, use the my reserved word in front of the handler, e.g.:

set theText to my strTest()