You might as well use
Code:
$count($strip($1-),word1,word2,word3)
Using if condition with the OR and iswm in that fashion is going to make your remote fill up in large size quickly in the long run...