Online text deduplication