added function to strip punctuation from words - str.translate