You can use the StringSplit action in the Community Commons module in the Marketplace to do this. It will return the split string in a number of entities that you can then iterate in order.
https://docs.mendix.com/appstore/modules/community-commons-function-library/#49-stringutils
Hope this helps.