If you want to get rid of all the duplicate whitespaces and newline characters, then you can use join () function with string split () function. >> > " " .join (s.split ()) 'Hello World From Pankaj Hi There'.
Such a collection thus cannot be modified by calling any methods on it. For a collection to be properly unmodifiable, any view collections derived from it must also be unmodifiable. For example, if a List is unmodifiable, the List returned by List.subList is also unmodifiable. An unmodifiable collection is not necessarily immutable. Returns an immutable list containing the given elements, in order. Despite the method name, this method attempts to avoid actually copying the data when it is safe to do so. The exact circumstances under which a copy will or will not be performed are undocumented and subject to change. I would use PowerShell to iterate and dump the entire list to a CSV, handle your duplications in Excel and then come out with a list of IDs to delete (the duplicates). From there, use PowerShell again and delete the items (.Delete not.Recycle).