Section 9. That it shall be lawful for the Court of Common Pleas of the city and county of Philadelphia, on the petition of Elizabeth Hoge, to appoint a trustee for her and any children she may have, to take such security as the said court may approve as adequate and safe by mortgage or ground rents, to secure the legacies bequeathed to or for her children by the will of her father, the late Rev. Thomas Hoge; and upon such security being given with the approval aforesaid, the said trustee and Elizabeth Hoge may execute and deliver unto the said Thomas H. Hoge a full release and discharge of said legacies or charges created by the will of the said Rev. Thomas Hoge, on all the real estate and personal effects by him devised and bequeathed until the said Thomas H. Hoge, by will dated the twentieth day of June, Anno Domini, one thousand eight hundred and forty-six; and the said Thomas H. Hoge shall be enabled to hold, sell, dispose, and devise said property and estate, clear and discharged of said legacies and charges, except only so far as he may by mortgage or ground rent incumber any part thereof, for the purpose aforesaid.