Added to stringToNumber function