Modify the message contents when chatting