# Trying to look for a specific word as an assertion but sometimes has commas

**URL:** <https://discuss.appium.io/t/trying-to-look-for-a-specific-word-as-an-assertion-but-sometimes-has-commas/36953>\
**Category:** Support\
**Created:** [August 2, 2022, 11:44am UTC](https://discuss.appium.io/t/trying-to-look-for-a-specific-word-as-an-assertion-but-sometimes-has-commas/36953 "2022-08-02T11:44:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkezn780](https://discuss.appium.io/user_avatar/discuss.appium.io/tkezn780/32/8568_2.png) [@tkezn780](https://discuss.appium.io/u/tkezn780)\
**Post date:** [August 2, 2022, 11:44am UTC](https://discuss.appium.io/t/trying-to-look-for-a-specific-word-as-an-assertion-but-sometimes-has-commas/36953/1 "2022-08-02T11:44:54Z")

</div>

I am looking for Duck but sometimes it can come back as Duck,Goose. I want it to pass as long as Duck comes back but it fails. I am trying to use the \* in XPath hoping that when it sees the Duck it will pass but the comma after it leads it to fail. C# hihgly preferred if you can see what is wrong.  
string actualvalue = \_IOSdriver.FindElementByXPath("\*//[@name=‘Duck’]").Text;  
Assert.IsTrue(actualvalue.Contains(“Duck”));
