While Loop Through String Python Replace Regex