Fix newlines and spaces