Please make sure that you are using correct quotes in the formula:
Sometimes when copying formulas from UiPath forum they need manual updating inside UiPath Studio.
This is how it looks like for me when I download you .xaml file:
and this is how it should look like:
Please check all of the quotes if they are correct.