`printf(…)` or `sprintf(…)` would be a bit more elegant here. Also try using `p(…)` instead of `echo`.