got spaceRemover working through manipulating boolean values and understandin what fflush(stdout) does.