Remove
1) duplicated entries, and
2) empty entries.