Added functiont to convert string to number function