結果 : replace string character by index python