def clean_data(data):
    """
    Removes any trailing new lines, replaces '"' with tab delimiter, and
    removes trailing commas and unnecessary quotation marks.
    Parameters:
        data: String of data.
    """
    data = data.strip("\n")
    data = data.replace('","', "\t")
    data = data.replace('"', '')
    # remove unnecessary comma at end of data.
    data = data[:len(data) -1]
    return data