Minor update to clear the string when exiting chat mode.