Parse string to float