I can't figure out how to code my replit so that it could detect a palindrome with punctuation marks, apostrophes, and non-alphanumeric characters considering uppercase and lowercase letters.

You are viewing a single comment. View All

I don't know Java, but I would solve it by removing all punctuation marks, spaces, and changing the entire thing to lowercase, then I would check if it's the same forwards and backwards. Hope this could kind of help!