How do i remove all characters in a textbox before the "|" with a code?

example:

text1.text = string1|string2

then when you run the code it will be

text1.text = string2


Thanks!