Remove trailing white spaces and large lines