Try
Code:
if (!ding isin $strip($1)) { }
(browse the /help for "isin" and "$strip")