def quotes(text: str) -> list[str]:
    """
    Gets all peices of text enclosed in quotes.

    Parameters
    ------------
    text: str
        The text to read.

    Returns
    ------------
    str[]
        An array of strings (quotes found in the text)
    """
    list_quotes = []
    single_quote = ""
    counting_quotes = False
    for char in text:
        if(char == '\"' or char == "“" or char == "”"): #different kinds of quotes (especially if copy-pasted from word doc...)
            if(counting_quotes):
                if(len(single_quote) != 0):
                    if(single_quote[-1] == ','):
                        single_quote = single_quote[:(len(single_quote)-1)] #Remove trailing comma
                list_quotes.append(single_quote)
                single_quote = ""
            counting_quotes = not counting_quotes #Start or stop counting quotes
            continue
        if(counting_quotes):
            single_quote += char
        
    return list_quotes