Remove useless sprintf() calls