It will be easier for you to initially not record a notice/message containing certain words than to later search for and delete this saved string in the window.
Try using this script code instead of your script:
on *:NOTICE:*:*:{
if (*try this new feature* iswm $1-) { return }
if (!$window(@Notice)) window @Notice
aline -p @Notice $timestamp $1-
}