How do I make a remote script that kicks and bans people for typing certain WORDS IN CAPS for 10 minutes?

on 1:TEXT:???:#channelname:/ban -ku600 #channelname $nick 2

the ??? is because I don't know how to make the remote script so it only recognize a word that is entirely in caps.

Do I have to use different a different command??