updated: add indication of empty list and cosmetic spaces.