結果 : python string replace time complexity