Upgraded waterline-dirty version to include case insensitivity.