How to remove "PC-F50A" or "|PC-F50A" or "PC-F50A|" in input excel

Hello @Baby123 ,
Just use str.Replace(“the string you want to replace”,“”)