You could use $strip($1-,i) instead of $remove().