test {
var %x = 1
while (%x <= $len($1-)) {
var %y = %y $+ (- $+ $mid($1-,%x,1) $+ -)
inc %x
} return %y
}

//echo -a $test(testing)
It only echo's the first letter and not the whole word.
I don't know why confused

Help me plz blush