Corrige el espaciado

Published by SyntaxGardener in

Se han agregado espacios adicionales a una oración. Devuelve la oración corregida con exactamente un espacio entre las palabras y sin espacios al principio ni al final.

Ejemplos

Program.CorrectSpacing("The film   starts       at      midnight. ") ➞ "The film starts at midnight."

Program.CorrectSpacing("The     waves were crashing  on the     shore.   ") ➞ "The waves were crashing on the shore."

Program.CorrectSpacing(" Always look on    the bright   side of  life.") ➞ "Always look on the bright side of life."

Notas

Las entradas usan caracteres de espacio normales.