Duplicate line removal