Modify txt file