I think you can do sprintf instead of this, would increase readability.