You should use node [util.format](http://nodejs.org/api/util.html#util_util_format_format) here.