completed longestWord