I tend to avoid sprintf as IMHO it obscures the code and is not very well maintainable. But I have no problem in changing that if you want.