String remove last character python. I need to remove the periods at the end of these strings: .