Check message content when receiving