Despite the code below, the string remains completely unchanged when it is printed out in the tkinter grid. I'd like for it to remove every character in disallowedCharacters. There must be something I'm not understanding about how strings can change. Note that itemSeries is passed to the following code from another function that grabs the text from the web using Selenium.
itemSeriesString = str(itemSeries)
disallowedCharacters = "()#1234567890"
for character in disallowedCharacters:
seriesName = itemSeriesString.replace(character, "")
itemSeriesLabel = Label(frame, text="Series:", font='time 12 bold')
itemSeriesLabel.grid(column=2, row=4, sticky='w', padx=10)
itemPrintSeries = Label(frame, text=seriesName)
itemPrintSeries.grid(column=3, row=4, sticky='e')
I tried escaping the (, ), and # characters, but it didn't change anything.