If in any such action judgment be rendered in favor of any defendant claiming any parcel or parcels of said lands or interest therein, such judgment shall adjudge that there be released to such defendant all the county's right, title or claim, at the time of the commencement of the action, by virtue of any deed made for the nonpayment of taxes to the land or interest as to which such judgment is rendered, and that the defendant recover the defendant's costs and disbursements in the action; and the money, if any, deposited by such defendant upon answering shall be applied in payment of such costs, and the surplus of such deposit, if any, shall be paid to the county.
Wis. Stat. § 75.49