remove duplicate and null strings