See
str.endswith
.