I would like to replace everything after "|" with "" How can I do this. I have this so far. I am looking for a "Wild Card" such as "*" I can not depend on trim since the strings are not common, and vary in length and placement of "|" So really all I want to keep is everything before "|" MsgBox(64, "OK ",StringReplace(GUICtrlRead(GUICtrlRead($listviewID)), "|", "")) Thanks!