use endswith method