I would prefer remove the use `echo` as a whole. `printf '%s' "$1"` is a lot shorter and the `exec()` overhead here really doesn't matter...