For one you can call the actual commands for your text events using $1
For example:
on *:TEXT:*:#:{
if ($1 == !sop) {
;commands for !sop here
}
if ($1 == !aop) {
;etc
}
}
$1 refers to the first token in the string so $1 in "Hello my name is Power." it would reference "Hello", $2 would reference "my" and so on. Even $0 plays a part in the string as it returns the total number of tokens within said string so "Hello my name is Power" would return 5.