This resolves the issue where ends with wasn't handling quantifiers