Municipal corporations may act as trustees under any conveyance or will donating or giving property for charitable or eleemosynary purposes.