Remove trailing whitespaces of lines