just an fyi, you may change
.set %search $1-
to
.set %search $replace($1-, $chr(32), +)

>:D