Per the specifications, this method should have also normalized the words, as your second method does below.