About the stripping nickserv message it was because the text shows up with bold and underline so i was not sure if this would throw it off.
As for the replace thank you i didnt think of doing it like that.