Yeah, it didn't cross my mind to consider a code that way. Thank you.
I do know that $banmask by itself is wildcard prone. jaytea's example above should get the job done right.