added removeLeadingZeros() method