help!!!!!!!!!

it's not working well.
if i type

!addbadword shit No badwords plz

then the !listbadword will tells me that the badwords are "shit"

then i type

!addbadword gay Hey!!! There's no gay in here

then the !listbadword tells me that the badwords are gay and shit

but the word shit is the last word in the list, and the bot only kicks the user if he spells the word that is the last on the list!!!!

If he says shit, he's kicked, but if he says gay, he's not kicked. He is only kicked if he spells the last badword in the list

any suggestions??