IOS predicate use

I’m looking to use predicate for finding elements as I read that Xpath should not be used and replaced with findElementByIosUIAutomation.

The Xpath looks like:
name: Pay a Bill
type: UIAButton
label: Pay a Bill
enabled: true
visible: false
valid: true
location: {10, 328.10598754882812}
size: {394, 44}
xpath: //UIAApplication[1]/UIAWindow[1]/UIATableView[1]/UIAButton[4]

In trying to test this logic out, I’ve created this snippet to press a button. I’m I coding predicate wrong?

    wait.until(ExpectedConditions.elementToBeClickable(((IOSDriver<?>) driver)
        .findElementByIosUIAutomation(".buttons().firstWithPredicate(\"name CONTAINS 'Pay a Bill' \")"))).click();

It does not find it and reports the following error:

*** Element info: {Using=-ios uiautomation, value=.buttons().firstWithPredicate("name CONTAINS ‘Pay a Bill’ ")}
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
at java.lang.reflect.Constructor.newInstance(
at org.openqa.selenium.remote.ErrorHandler.createThrowable(
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(
at org.openqa.selenium.remote.RemoteWebDriver.execute(
at io.appium.java_client.DefaultGenericMobileDriver.execute(
at io.appium.java_client.AppiumDriver.execute(
at io.appium.java_client.ios.IOSDriver.execute(
at org.openqa.selenium.remote.RemoteWebDriver.findElement(
at io.appium.java_client.ios.IOSDriver.findElementByIosUIAutomation(
at com.cri.fnbo.ios.accounts.PayABillDetails.payABillNotEnrolledInBillPay(

generally searching a string will make bit confused as there is much difference with CONTAINS, MATCHES, LIKE,etc…hence I suggest better to with the index values which might be precise and the XPath you got will guide you much better but please be careful the value displayed with XPath will be one value more than the predicate value hence your xpath: //UIAApplication[1]/UIAWindow[1]/UIATableView[1]/UIAButton[4] can be written as “.tableViews[0].buttons[3]”