結果 : check if string ends in substring python