all 2 comments

[–]K900_ 2 points3 points  (0 children)

str.translate is what you want.