Deductions & credits

What if the home deposited into the trust, and occupied by the depositor, can be removed (reacquired) from the trust by the depositor and replaced by replacing it with property of similar value?  In that case, is the $250,000 preserved?