new function rish for interpolating variables from a hash.