@staticmethod
def _make_title(title, title_format):
    """Create a title/subtitle/section in the reST-format and return it as
        a string.

        Parameters
        ----------
        title : str
            The title in words
        title_format : (str, str)
            | The surrounding lines. The titel will be:
            |
            | title_format[0] * len(title)
            | title
            | title_format[1] * len(title)
        """
    out_str = ''
    if title is not None:
        title = str(title)
        out_str += '\n' + title_format[0] * len(title)
        out_str += '\n' + title
        out_str += '\n' + title_format[1] * len(title) + '\n'
    return out_str
