Thank you! Regarding case issues, I hadn’t thought about that yet, but maybe. In theory, no, because I always enter ingredients as lowercase unless they’re proper names, but sometimes download/export software handles them oddly. At worst, I suppose I could include a lowercase and a title-case version of each one.
What does the lower() function do? Is it similar to the flatten function Craig mentioned?