the question is write a C++ string function that takes a string and returns true if It is a palindrome. Improve the function to make it have an option to make it case sensitive and adjustments to capital letters, punctuation, and word dividers. Examples "A man, a plan, a canal, Panama!", "race car".
The code runs perfectly but i tried to make it case sensitive but i seems to not work well. i also used getline to take the string as a whole but that also does not seem to work.