For comparing an xml string value against multiple strings, I am doing the following.
For space-separated words you can use index-of(tokenize("list of allowed", "\s+"), "needle")) or match to go with regular expressions, although I am pretty sure there is something smarter than this.
index-of(tokenize("list of allowed", "\s+"), "needle"))
match