completed palindrome and wordcount