Replace duplicate from Title

How can I create an action that removes duplicates from the title field?

original title: "Cover Me [Texas Gentlemen Remix] Texas Gentlemen Remix"
new title: "Cover Me [Texas Gentlemen Remix]"

I'm not sure how I can accomplish this with an action. Can someone help me? Thanks!

Best regards,
Dennis.

I am not sure about the duplicate.
But if you want to keep the stuff in front of the ] then it could work like this:
Action of the type "Replace with regular expression"
Search string: (.]).
Replace string: $1

EDIT:
Here is a link that looks for duplicate words and removes them except on:
/t/16289/1