I should also add, what's interesting about the string parts of a user's inventories is that it could be used to figure out roughly the chronological order of them acquiring pokemon.
The string is how a user's pokemon is stored in the database, and captures or receiving a gift/trade just add the pokemon on the end. Removing pokemon either through releasing or losing through a trade plucks the relevant IDs from their string, but keeps the order.