I have string ‘00709’ and I want to remove leading zero and have a result like this: ‘709’.

In java, to do this you can try this method:

public String removeLeadingZero(String s){
 return s.replaceFirst("^0+(?!$)", "");
}

If you have string ‘0.000709’, it will be like this: ‘.000709’.

Just try it:mrgreen: