# Challenges "Check for Palindromes"

**URL:** <https://forum.freecodecamp.org/t/challenges-check-for-palindromes/80048>\
**Category:** General\
**Created:** [January 24, 2017, 1:09pm UTC](https://forum.freecodecamp.org/t/challenges-check-for-palindromes/80048 "2017-01-24T13:09:07Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![majid](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/majid/32/104606_2.png) [@majid](https://forum.freecodecamp.org/u/majid)\
**Post date:** [January 24, 2017, 1:09pm UTC](https://forum.freecodecamp.org/t/challenges-check-for-palindromes/80048/1 "2017-01-24T13:09:08Z")

</div>

Hi,  
Why should the palindrome(“1 eye for of 1 eye.”) return ‘false’?  
I think the result must be ‘true’!  
Tanx.

---

<div class="post-metadata">

**Author:** ![Oxyrus](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/oxyrus/32/69509_2.png) [@Oxyrus](https://forum.freecodecamp.org/u/Oxyrus)\
**Post date:** [January 24, 2017, 1:11pm UTC](https://forum.freecodecamp.org/t/challenges-check-for-palindromes/80048/2 "2017-01-24T13:11:59Z")

</div>

A palindrome is written the same way backwards, just read it.

---

<div class="post-metadata">

**Author:** ![joesmith100](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/joesmith100/32/34933_2.png) [@joesmith100](https://forum.freecodecamp.org/u/joesmith100)\
**Post date:** [January 24, 2017, 1:12pm UTC](https://forum.freecodecamp.org/t/challenges-check-for-palindromes/80048/3 "2017-01-24T13:12:04Z")

</div>

Because its not a palindrome

```auto
"1 eye for of 1 eye." // Forward
".eye 1 fo rof eye 1" // Reversed

```

---

<div class="post-metadata">

**Author:** ![majid](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/majid/32/104606_2.png) [@majid](https://forum.freecodecamp.org/u/majid)\
**Post date:** [January 24, 2017, 1:26pm UTC](https://forum.freecodecamp.org/t/challenges-check-for-palindromes/80048/4 "2017-01-24T13:26:42Z")

</div>

Note  
You’ll need to remove all non-alphanumeric characters (punctuation, spaces and symbols) and turn everything lower case in order to check for palindromes.

At the first (according to above note) we should remove all non-alphanumeric characters.  
And the ‘eyeforofeye’ must be palindromes. Is not it?

---

<div class="post-metadata">

**Author:** ![adam4813](https://avatars.discourse-cdn.com/v4/letter/a/2bfe46/32.png) [@adam4813](https://forum.freecodecamp.org/u/adam4813)\
**Post date:** [January 24, 2017, 1:35pm UTC](https://forum.freecodecamp.org/t/challenges-check-for-palindromes/80048/5 "2017-01-24T13:35:20Z")

</div>

> [@majid](#):
>
> eyeforofeye

Is a palindrome yes. The number 1 is an alphanumeric so it must stay

---

<div class="post-metadata">

**Author:** ![majid](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/majid/32/104606_2.png) [@majid](https://forum.freecodecamp.org/u/majid)\
**Post date:** [January 24, 2017, 4:01pm UTC](https://forum.freecodecamp.org/t/challenges-check-for-palindromes/80048/6 "2017-01-24T16:01:54Z")

</div>

So the digits should not be removed.  
tanx

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 5:11pm UTC](https://forum.freecodecamp.org/t/challenges-check-for-palindromes/80048/7 "2021-01-16T17:11:05Z")

</div>

Closed on January 16, 2021, 5:11pm UTC


