new table format, assign integer IDs to substrings