Guest Name Normalization in Hotel Ledger
Guest Name Normalization in Hotel Ledger
EasyStrings0% accepted
Arjun manages a 5-star hotel in Mumbai and receives guest names from various booking platforms with inconsistent formatting. Names have extra spaces and mixed capitalization. He needs to normalize all names to a standard format for database storage.
Approach
Given a guest name string with multiple spaces and mixed case, return the normalized name with single spaces and proper capitalization (first letter uppercase, rest lowercase).
Input
arjun SHARMA
Output
Arjun sharma
More Strings problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards