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

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

    l = len(text)

    if l == 0:
        return text

    start = 0 if text[0] != "'" and text[0] != '"' else 1
    end = l if text[l-1] != "'" and text[l-1] != '"' else l-1

    return text[start:end]