Upper case conversion
School Accuracy: 36.03% Submissions: 13660 Points: 0

Given a string S, write a program to title case every first letter of words in string.

Input:
The first line consists of an integer T i.e number of test cases. T testcases follow. The first and only line of each test case consists of a string S

Output:
For each testcase, in a new line, print the required output.

Constraints: 
1 <= T <= 100
1 <= |S| <= 1000

Example:
Input:

1
I love programming

Output:
I Love Programming

to report an issue on this page.

Editorial

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

Yes

All Submissions

My Submissions:

Login to access your submissions.