Data segregation and display in different ui text

I would use a function node splitting your incoming string into two parts using sting.split(“|”) Take a look here somebody had a similar problem: