Getting and cleaning data txt output