Also just to put some thought into your algorithm, if the words are palindromes then they are symmetric yah ? So would you need to test the entire word or just half of it ? Not to confuse you though, you are currently testing the whole word twice essentially.