I noticed that if i use the leading zeros are not removed. I also saw a lot of discussion on how keeping leading ze
just use a regular expression like this
textboxText= textboxText.replace(/^0+/, '')