Invert case check

Instead of checking for "not A-Z", check for a-z. 
Prevents false positives e.g. if line begins with a number.