better format, duplicated strings are listed once