modification to the text file, and add a split functuality to the line