結果 : python remove end of string if matches