Pardon me if I'm misreading your confusion, Richard.
You have the global template in your app. Therefore, StringTheory is available.
But as with any other class/object-based code, you need an instance of it to work with.
When you create an instance in your procedure, then the methods st.SetValue, st.ContainsA, etc. will be available.
(Assuming you've named your instance st )
In the DATA section of your procedure (somewhere above the CODE statement), try inserting this line
st StringTheory
so you're creating a StringTheory object in that procedure with the name "st".
Then see if the rest of your code compiles.
Hope that helps.
Jane