correct the code to remove the blank space from txt file