Fix bug where int returned from stringToInt always has extra 0 appended