Given a string s, normalize its whitespace by:
For example, " hello world " becomes "hello world".
s = " hello world ""hello world"s = "foo bar baz""foo bar baz"s = " """0 <= s.length <= 10^4s consists of printable ASCII characters including spaces, tabs, and newlines.Run your code to see results
Use Cmd+Enter to run