#680: Wrap '.lower()' method with IF statement

Resolves #680.