Compare the two variables,every variable have multiple data

1. What is the issue? Please be detailed.
I have two variables. Each variable stores multiple pieces of data. Each piece of data is separated by a space. How can I compare the two variables and list the difference values? Is it possible for ODK XLSForm to do this?

2. What steps can we take to reproduce this issue?

3. What have you tried to fix the issue?

4. Upload any forms or screenshots you can share publicly below.
var1: aaa bbb ccc
var2: aaa ccc
diff: bbb
how can i get diff data?