st = list(st) for x in range(0, len(s)): if x % 2 == 0: s[x] = '2' return "".join(st)