added longestWord