parse string to float