I have numbers like this that need leading zero\'s removed.
Here is what I need:
00000004334300343 -> 4334300343
00000004334300343
4334300343
000
If you know input strings are all containing digits then you can do:
String s = "00000004334300343"; System.out.println(Long.valueOf(s)); // 4334300343
Code Demo
By converting to Long it will automatically strip off all leading zeroes.
Long