On *:Text:* is your name*:?: { msg $nick foo }
What is your name? should work but it will only match those exact words. You need to be specific with wildcards.
what is your name* will match the following:
what is your name?
what is your names
what is your namex
..so on.
On *:Text:* is your name*:?: { msg $nick foo } that matches any word before is, whether it be what/wut/wat/wot etc.
-Andy