Is there a better way to do this?

Originally I thought only replacing the non-breaking spaces at the beginning of a line would be better, in case there's a non-breaking space in a string that someone wants to keep, but thinking about it we may not actually need that, I can't think of many good reasons to have a non-breaking space in the .travis.yml file.