How can I remove extra white space (i.e. more than one white space character in a row) from text in JavaScript?
E.g
match the start using.
This can be done also with javascript logic. here is a reusable function I wrote for that task. LIVE DEMO
result: