22(1)Substantial compliance with sections 20 and 21 is sufficient; and no lien is invalidated by failure to comply with any requirement of those sections unless in the opinion of the judge who tries the action, the owner, contractor, sub-contractor, mortgagee, or some other person is prejudiced thereby, and then only to the extent to which he is so prejudiced.