Skip to main content

Practice ยท 1 of 4

Name normalizer

CHALLENGE
Difficulty: beginner+25 XP

Implement static string Normalize(string name) โ€” trim surrounding whitespace, then collapse every run of internal whitespace to a single space. " Minh Van " becomes "Minh Van". Null yields "".

Back to lesson: Practice: Text workshop