Strip out leading zeros from a a string from Stackoverflow:
theNumber=0023 echo $((10#${theNumber})) 23