I will take a look. I think I can make something work with split. I'll post the results here.
On a sidenote, you could add the minimum character requirement on text parameters much like you do on property patterns. That would streamline things and remove the need for an additional script.