Reduced duplication of .lower() and faster perf.