palindrome clarification AGAIN

I have a project that we need to check if the string is a palindrome.

no definition of palindrome or whatsoever, and now I’m confused with these examples that I made:

  • ab!ba
  • a? bba
  • racecar.
  • ab b a
  • 23abba32
  • ||a||
  • a a (double space between a)

with the confusion of whitespaces and punctuations, should i consider them in judging if its a palindrome? or should I only focus on letters and numbers?

No you shouldn’t consider whitespaces and punctuations.
Wiki examples