good on ya STING :P the reason 'teSTING' is not being matched is that regex in mIRC is, by default, case sensitive. if you use the pattern /STING$/i on that second last check, 'teSTING' would then be matched. if you mean to combine the following:

/^STING$/
/^STING /
/ STING$/
/ STING /

ie. the regex equivalent of checking $istok( ,STING,32), then you should take note of the fact that they are all quite similar and include your nick somewhere in the middle. more precisely, on the left side of your nickname we want to match either ^ or a space; on the right side of your nickname we want to match either a space or $. we can then use | (indicating alternatives, you can think of it as an 'OR' operator) combined with ( ) (a group) to produce:

/(^| )STING( |$)/

( ) also have the property of saving what is matched for later reference with $regml(). quite often this is wasteful and unnecessary, (?: ) can be used to group alternatives without saving the result. you'll come across these constructs later on i imagine, good luck!