Revert "strtolower correction"

This reverts commit 9e2ccc7f9aea730e2e7ca7ee99aa6ec25ef89110.
Revert "Revert "strtolower correction""

This reverts commit cb3da35f5ce8537e4b05e84e538cdfd6f398222f.