Trim spaces off the ends of lines, to make copy/paste tidier