#7 tests our program while removing all  spaces at the end of string