locohacker wrote:Got and idea, why not check if timestamp is on and then get the message to the right of "PM)" or "AM) "

First look if timstamp item in settings menu is checked, then you positively know if it's on or not. I once posted code to find commands at runtime, you can make it more simple by hard coding the submenu and item number.
Then look if the line begins with space, only notification lines begin with space, and process accordingly.
if timestamp is on look for ") " before the line, wether user or notofication.
User names ends with ": ", find the index and split like autopilot, but is iSplit + 2, no need to trim.
of course you need to check for whispers, and there is no realy reliable way to tell if the line is a whole line or part of line that broke because it's long, unless you gonna subclass the room text control.
Regardin processor usage, it's not only how many lines of "code" you have.
Split cause creation of 2 new string and copy from the original, Trim cause another creation of string and copy. But it's nothing compared to what you still gonna do.
Worry less about cpu and more on how to get it right first. Then if there's a problem you can look into optimizations