get_itemnames function

Extract item names