issue #163 trim IDs before testing they are empty