Strip trailing whitespaces from empty lines