You can break up a string into an array using the split() operation. You can use it in an expression like this. (I also added an example of then converting the array into items in case you need that).
Let me know if this solves the issue, or if you also need help with your second approach?
