condense text edit

problem 3