updated int2str algorithm