Mississippi Code
Article 4 - Creation, validity, modification, and termination of trust
§ 91-8-413. Cy pres

Except as otherwise provided in subsection (b), if a particular charitable purpose becomes unlawful, impracticable, impossible to achieve, obsolete or ineffective:
A provision in the terms of a charitable trust that would result in distribution of the trust property to a noncharitable beneficiary prevails over the power of the court under subsection (a) to apply cy pres to modify or terminate the trust only if, when the provision takes effect:
The trust property is to revert to the settlor and the settlor is still living; or
Fewer than twenty-one (21) years have elapsed since the date of the trust's creation.