I think that I am getting a key error when accessing a dictionary because some of the keys in the dictionary seem to be strings of strings. Is there a way to strip these to simply be strings?
I was thinking of using a list comprehension but am wondering if there is a better way:
x = ' "string" '
x = [i for i in x if i not in ["'", '"']]
x = ''.join(x)
And now x = 'string'