結果 : python check if substring is at end of string