I need to write a function that does the following:
the function receives file names with this format
Between the words might be multiple spaces, I want to remove the extra spaces between the words and leave only one.
For example (1):
aa__________a____aa _____________ ssd________.station, needs to be changed to
aa______________a.station needs to be written as:
(The underscores (
_) signify spaces in the above.)