Or getting them off the street entirely. Relative used to work at a vet clinic that occasionally doubled as an adoption centre. Find stray animal, bring to clinic, give it shots, give away to someone as a pet.
(Or adopt ourselves, in one case that worked out phenomenally. Great-personality cat who lived like 20 years).