nice work. you can also do it like this as well working example only:
alias reverse return $regsubex($1-,/(.)/g,$mid(\A,-\n,1))
//echo $reverse(hello to you) uoy ot olleh