The goal of this assignment is two parts. Remove all the extra spaces in the Comment below, and do it in 2 different ways.
There are hundreds of way to solve most programming problems. For this assignment you'll remove the spaces using
**2 different ways. Only one** of the ways can use the **.replace()**.

Below is a comment box with Lorem Ipsum and some randomly placed spaces. You need to dynamically find all the spots that have multiple spaces and replace them with a single space. You will do this formatting once the user clicks the Format button.

Since you have to solve the same problem twice you will need to output each different set of results to Output1
and Output2. **Each Output needs to have a unique solution for how the spaces were removed.**

Example Output: