See str.endswith.