Replace Elements In String Python