Thanks for the tip! I am using something similar but with the Toolbox ListExpression.
But the good news is I think there is a simpler way to do this without elements or plugins since this announcement: [New Feature] '...:format as text' operator on lists
Would something like this would also work for your use case?