Convert to Title Case Problem

Convert to Title Case Problem — ExecCode School DSA Practice

Solve the Convert to Title Case problem on ExecCode. Free online school DSA practice in String. Write and run code in Java, C++, Python — no signup required to run.

Problem description

You are given a sentence made of words. Your task is to change it so that the first letter of every word is a big letter (capital), and all other letters in that word are small letters. Print the changed sentence.

Examples

Input this is a string; Output This Is A String. Input aBcDeFg; Output Abcdefg

Constraints

1 <= n <= 10^5

Practice Convert to Title Case free on ExecCode. Browse DSA problems, topic map, and placement guides.