The filthy rag scripture only refers to dirty clothing.
The Bible demands that.
Isa 64:6 But we are all as an unclean thing, and all our righteousnesses are as filthy rags; and we all do fade as a leaf; and our iniquities, like the wind, have taken us away.
Zec 3:3 Now Joshua was clothed with filthy garments, and stood before the angel.
Zec 3:4 And he answered and spake unto those that stood before him, saying, Take away the filthy garments from him. And unto him he said, Behold, I have caused thine iniquity to pass from thee, and I will clothe thee with change of raiment.
LA