in reply to sprintf("%ss", ...)

Can't test it right now (in public transportations), but fairly sure it should work. Do you get any error message? Or is the output different from what you are lookig for? Or any other problem?