Replacing text when txt file saving