from tkinter import *
root =Tk()
text = \'["apple", "banana", "orange]"\'
data = text.replace("[", "")