I'm taking user inputted strings continuously and then trying to remove any character that is not a character or digit.
The method that I developed involves splitting a string by the white space and then analyzing each word to find invalid characters.
I'm having a hard time putting the words back together with spaces in between each word. I've tried using ' '.join(list) but it puts a space in between each character or digit.