結果 : python remove pattern from end of string