<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_string_and_set_width(self, combination, mode):
 """ Construct the string to be displayed and record the max width. """

        show = "{}".format(self._separator(mode)).join(combination)
        show = show.rstrip("{}".format(self._separator(mode)))
        self.max_width = max([self.max_width, len(show)])
        return show