inttostr: simplify by removing unnecessary redundancy