Removing (Clone) from player

So I made an enemy with the AI to target the GameObject “Player” but the Network Manager spawns in a GameObject named Player(Clone), how do I remove (Clone)?

my bad, I just guessed a method like Remove existed that way

Replace("(Clone)","");