Easier to post your capx. Otherwise we have no idea how you're storing your text (or if you even are yet), etc.
Also you can't have a trigger in a subevent that doesn't make sense, which is why C2 filters out some selections in subevents.
As for mid(), do you know what it does? It's used to extract some text from within a larger block of text.