translator = str.maketrans('', '', string.punctuation)
s = 'string with "punctuation" inside of it! Does this work? I hope so.'
print(s.translate(translator))
How to remove punctuation marks from a string in Python 3.x using .translate()?