Added Function to convert a string to a number data type