trim down XPATH selectors in dictionary items