finish up the forEachWord method