§ 53-12-172. Cy pres
If a charitable trust or gift cannot be executed in the manner provided by the settlor or donor, the superior court shall exercise equitable powers in such a way as will as nearly as possible effectuate the intention of the settlor or donor.