Removing whitespaces at the end of some lines