Hi @Anonymous ,
Based on the needs that you mentioned, I think the Substitute function and Split function could achieve your needs.
I have made a test on my side, please take a try with the following workaround:

Set the Text property of the Label to following:
Last(FirstN(Split(Substitute(TextInput2.Text, " ", ""), "||"), 2)).Result
On your side, you should type the following formula:
Last(
FirstN(
Split(
Substitute(PersonInfoTextInputBox.Text, " ", ""),
"||"
),
2
)
).Result
Please take a try with above solution, then check if the issue is solved.
Best regards,