Replace intToStr function