ignoring leading and trailing spaces, and parsing basic floats ftw