Cleanup of some sprintf