Why does my second function in while doesn’t work?
In this code I am trying to copy and paste an input by replacing a string of one or more blanks by a single blank. I don’t know why my second if function inside the while is not working. I removed it and still the code worked the same way.