String to number function added