Check for duplicate tags