@staticmethod
def add_tuple_brackets(tupl):
    """After splitting tuple with :func:`split_group`, you got some tuple
        like **aa].[bb].[cc].[dd** so add_tuple_brackets fix this by adding
        missed brackets **[aa].[bb].[cc].[dd]**.

        :param tupl: Tuple as string example  'aa].[bb].[cc].[dd'.
        :return: [aa].[bb].[cc].[dd] as string.
        """
    tupl = tupl.strip()
    if tupl[0] != '[':
        tupl = '[' + tupl
    if tupl[-1] != ']':
        tupl = tupl + ']'
    return tupl
