Remove some trailing spaces and other useless things