結果 : replace string using index in python