13 is cariage return /help $cr
10 is line feed /help $lf
Sounds like it might have worked by chance likely there is #blah<space><cariage return> maybe not, The second "tokenize 13" should have caused it to go astray since the first one would have sepearted it on 13's but replaced them with spaces.
Try out.
var %varablename = $remove.non.hashed(%varablename)
alias remove.non.hashed {
var %t = $1-
var %i = $numtok(%t,13)
while (%i) {
if (#* !iswm $gettok(%t,%i,13)) { var %t = $deltok(%t,%i,13) }
dec %i
}
return %t
}