Put array in function 'parameters ?

Hello ! Sorry for my English, I hope you understand this.

I try tu put string array, in parameter of one function. I try this :

public void test1 (string[] array, string answer){


		foreach (string word in array) {
			if (tempTextPlayer.Contains (word) {
				
				StartCoroutine(SayIA(answer));
				
			}
		}

	}

I hope you can help me, thanks !

Perhaps you are just missing another parenthesis after this in line 5 if (tempTextPlayer.Contains (word)

    public void test1(string[] array, string answer)
    {
        foreach (string word in array)
        {
            if (tempTextPlayer.Contains(word))
            {
                StartCoroutine(SayIA(answer));
            }
        }
    }

Thanks ! I’m feeling so stupid ^^’