UVa 11965 - Extra Spaces

Summary
Replace any amount of consecutive space character (ASCII 32) to only 1 space character.

Explanation
Straight-forward ad-hoc problem.

Implementations
Java users can solve this problem easily with regular expression (replaceAll(" +", " ")).

Input
2 3 Sample test one: there was 2 spaces and here are also 2  spaces 2 Sample test two: there was 4 spaces

Output
Case 1: Sample test one: there was 2 spaces and here are also 2 spaces

Case 2: Sample test two: there was 4 spaces

Categories here, use the form , see Categories for a list