Modified function int2str