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:
sting.split(“|”)