switch Triple to take twines instead of stringrefs.