Amend The Sentence
Submissions: 5149   Accuracy:

33.61%

  Difficulty: Basic   Marks: 1

Given an array of characters which is basically a sentence. However there is no space between different words and the first letter of every word is in uppercase. You need to print this sentence after following amendments:
(i) Put a single space between these words
(ii) Convert the uppercase letters to lowercase.

Input: 

The first line of input contains the number of test cases. The description of T test case follows.

Each test case contains a single line containing a string.

Output:

Print the desired Sentence.


Constraints:

1<=T<=30

1<=Size of String <=100

Example:

Input : 

2

BruceWayneIsBatman

You

Output : 

bruce wayne is batman

you

** For More Input/Output Examples Use 'Expected Output' option **

Author: jain_rishabh


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.

to report an issue on this page.