limit number of list and dict items, and string lengths