Checks if a number is palindrome