Checks whether a number reads the same in both directions