Hello again all. Got a question concerning palindromes. Basically I am writing a program that will determine if a line is a palindrome or not, neglecting spaces and punctuation that is. Now I am trying to do this by setting two variables on each end of the string and comparing the two. Now I can compare the first two fine using an if, but I'm a little unclear as to how I would increase my said variables, and then disregard punctuation and spaces. I know that i would need to use a while loop but I dont know what arguments to use. Thanks for the help.
Scratch that, did some more research which solved some of my problem, but still am lacking on how to remove punctuation and spaces.