Unable to recognize variable text from XPATH SPAN

Perhaps remove the single quotes you have around the variable so it becomes:

//*[contains(text(),${siteName})]