Move duplicate names to the same line