Remove line break from last line function