結果 : python replace character in string based on index