Change function RemoveTrailingBlankLines