edit: fixed syntax for sprintf-like statement