Free practice · ordering · medium

Practice

Order a text-cleanup pipeline

Arrange a safe pipeline for a comma-separated list of workplace tags.

Text transformation review

Normalize format without erasing business meaning

Inspect

PresenceRequired?
FormatDefined?

Transform

WhitespaceTargeted
CaseIntentional

Verify

MeaningPreserved
EdgesTested

Different text states need different protections. Keep identifiers, separators, blanks, and capitalization tied to an explicit contract.

Arrange in the correct order
  1. 1. Return the checked tag collection
  2. 2. Remove only pieces defined as empty by the contract
  3. 3. Strip whitespace and normalize each tag
  4. 4. Split the text at commas
  5. 5. Confirm the input is present and is text