strtolower added for case sensitive systems.