renamed fn to joinTextEntries