Convert string to float