. . "(1)???Substantial compliance with sections 17, 18 and 30 is sufficient, and a claim for lien is not invalidated because of failure to comply with the requirements of those sections unless, in the opinion of the judge, the owner, contractor or subcontractor, mortgagee or other person is prejudiced by that claim, and then only to the extent to which he or she is prejudiced." . . . .