convert velocity from string to float