Your example mis-spells $strip($1) as $stip($1)