added the handler for string messages.