// Don't do this:
if (checkPalindrome(word) == 1)


// Do this instead:
if (checkPalindrome(word))