Convert string data to numbers