Merge the `.lower()` call into the loop above this one. Iterating twice over the same data could be a big performance hit.