convert message to str