cy pres

noun

1.
a rule that when literal compliance is impossible the intention of a donor or testator should be carried out as nearly as possible