Replace a specific element only