add trimming to entryForName