convert chat mesages to strings