You could use $istok instead.
Code:
if ($istok($1-,your.mom.jokes,46))

In this example the if-statement is true if the *single* words "your" "mom" or "jokes" are in the line.