Fix lines with leading or trailing space that have chords over them