Refactored str.lower() to one call for more speed

Clearer variable naming