Leonid This is great. Thanks for sharing!! A question: if the list clist ends with blanks the function doesn't clean duplicate blanks, what is the reason?