You can reduce a couple lines by using /ban -k, combination of the /ban & /kick command.
/help /ban
Also why not just strip everyting at the beginning of the event by inserting the code below before the first if statement:
tokenize 32 $strip($1-)
So you don\'t have to keep using strip everytime.
/help /tokenize