For Loop Through A String Python Replace