11965 - Extra Spaces


Difficulty : easy

Solution Description :
Simple string processing

String removing problem
Just Keep your mind
1. If any space at the first (first character is space) of line then print one space begin of the output line
2. If any space at the at the (last character is space) last of line  then print one space end of the output line
3. If any line is blank line then print blank line
4. If any input line contain only one or more space then print one space as output
5. The problem says print a blank line between test case but not at all

Input
1
4
ssssss###ssssssss###
###sssssss

sssssssss

Output
Case 1:
s###s###
###s

s

Note : here s means one space