Case insensitive and trim whitespaces in webdriver factory.