public function setMsg($msg) { $this->originalMsg = $msg; $msg = str_replace(array("\r", "\n"), "\n", $msg); $this->msg = $this->removeComments($msg); $this->processMsg(); }