Trim the message before doing a comparison