@staticmethod
def is_section(section, test_string: str, item: str=None):
    """
          Return if test_string denotes the beginning of the section.
        
          :param section: The section to be tested.
          :type section: LogconfigSections.
          :param test_string: The string to be tested.
          :type test_string: str
          :param item: the item described in the section.
          :type item: str
          :returns: True if test_string denotes the beginning of the section.
          :rtype: bool
          
        """
    if item is None:
        return test_string == ''.join(['[', section.value, ']'])
    else:
        return test_string == ''.join(['[', section.value, item, ']'])
