Duplication Problem. Please help.

Hello. I am fairly new to both Game Creation and Scripting. I had created a script that duplicated my set object. I also had another script that destroys the object when the player collides with the object. All goes well until the duplication part. When the object becomes duplicated it changes its name from “Apples” to “Apples(clone)” When it adds the "(clone) to the end it doesn’t allow my destroy on collision script to work since the name isn’t “Apples” This is the script
using UnityEngine;
using System.Collections;

public class DestroyApples : MonoBehaviour {

	void OnCollisionEnter2D (Collision2D col)
		//Check collision name
		Debug.Log("collision name = " + col.gameObject.name);
		if(col.gameObject.name == "Apples")

Is there a way it can be duplicated without the “(clone)” or a way that it allows the script to detect the object.

Sorry if my writing is in poor condition. I am quite tired. If any questions pop up, please ask.

All help is very much appreciated. Thank you.

try to store the gameobject in a local variable
eg -

 Gameobject gObj = (Your Instantiate code )as GameObject;
gObj.transform.name ="Apples";

This will work

You can also destroy based on the tag of the enemy. Set the tag of the apple prefab to a new tag, “Apples” then use the following

if(col.gameObject.tag== "Apples"){