#C11024. Tidy Item Name
Tidy Item Name
Tidy Item Name
You are given a string representing an item name. The string can contain leading and trailing spaces, as well as multiple spaces between words. Your task is to remove any extra spaces so that there is no leading or trailing whitespace and only one space appears between words. For example, if the input is (\texttt{ luxury sofa set }), the output should be (\texttt{luxury sofa set}).
inputFormat
The input is provided via standard input (stdin) and consists of a single line containing the item name string. This string might include leading or trailing spaces and extra spaces between words.
outputFormat
Output the correctly formatted item name string to standard output (stdout) with all extra spaces removed.## sample
luxury sofa set
luxury sofa set