Remove spaces at end of lines [MJ-461]