Remove Any Excess White Spaces From Within The Sentence

[Solved] Remove Any Excess White Spaces From Within The Sentence | Perl - Code Explorer | yomemimo.com
Question : Remove any excess white spaces from within the sentence

Answered by : fantastic-falcon-3sw5vwvd593a

//to remove duplicate whitespaces of all kinds, icluding beginning and ending of string
s = " ".join(s.split())

Source : | Last Update : Mon, 29 Mar 21

Answers related to remove any excess white spaces from within the sentence

Code Explorer Popular Question For Perl