Variable adding in the Selector

Hi Team,

I have this selector :
[
{
“Selector”: “NM”,
“browser”: “chrome”,
“frame”: “-1”,
“url”: “https://*************”
},
{
“xpath”: “//li[contains(@class, ‘select2-results__option’) and contains(text(), ‘feedback_for_parents (en)’)]”
}
]

and i want to replace the feedback_for_parents (en) with a variable (String) if i am adding it like {{Template}}, app in showing error kindly help me out. :: Template here is the variable name which is string.

I tried and researched and this worked for me

[
{
“Selector”: “NM”,
“browser”: “chrome”,
“frame”: “-1”,
“url”: “https://consolev1.pinbot.ai/campaign
},
{
“xpath”: “//li[contains(@class, ‘select2-results__option’) and contains(text(), ‘{{Template}}’)]”
}
]