結果 : python replace characters in string by index