I was wondering the same as pujasudhakaran7589 and sickmofotriple. If the user just types the spacebar the program just print them again. I don’t know how to differentiate the spaces from the actual characters in the “original” string.
If anyone knows please, it would be a great help.
Thank you all!