title: Replace multiple whitespaces with single whitespace in JavaScript string
body: <p>I have strings with extra whitespace characters. Each time there's more than one whitespace, I'd like it be only one. How can I do this using JavaScript?</p>