def strip_brackets(text) -> str:
    """
    Strips starting and trailing brackets from input string

    :param text: Text string to strip the brackets from.
    :return: Text string without brackets.
    """
    if text is None:
        return ""

    if text.startswith("[") and text.endswith("]"):
        return text[1:len(text) - 1]

    return text