deduplicate strings, tiles are as a string, tiles to file