The clean hands doctrine applies in courts of law as well as in courts of equity, Olmstead v. United States, 277 U.S. 438, 484, 48 S. Ct. 564, 574 (dissenting opinion) (Brandeis, J.) and Z. Chaffee, Some Problems of Equity (1950), it generally has been held that the doctrine operates only to deny equitable, and not legal, remedies. Merchants Indemnity Corp. v. Eggleston, 37 N.J. 114, 179 A. 2d 505 (1962); Manufacturers' Finance Co. v. McKey, 294 U.S. 442, 55 S. Ct. 444 (1935); 30 C.J.S., Equity, § 98 at pp. 1037-38 (1965).