corrected parsing integer value from string with leading 0