condense text edit

problem 1