Add options parameter to interpolateName and refactor hash digest