Completed String Analysis homework.