´fixingr trailing whitespace and end with newline