Replace objects By anothers by its Names

Hi I am looking for an addon which will allow replacing several objects by other objects based on their names. If One object name is x-men it would be replace by another object wich name is x-men too.The replacement will be done by the names of each new object which will occupy the coordinates of the 1st objects with the same names. Thank you