How To Replace Elements In A String Python