Code for step 2 of exercise two for spelling correction.