Spacing, punctuation, and other such characters are generally ignored when determining whether or not a phrase is a palindrome.
Example:
A Man, A Plan, A Canal: Panama!
amanaplanacanalpanama
There are certain websites dedicated to listing examples of palindromes, and could be used as sample data if testing needs to be done for your script.