Determine if the input is a palindrome
Function written by Eleni Christoforidou in MATLAB R2022b.
This function takes one input argument, a char vector and recursively determines whether that argument is a palindrome. The function returns true or false. Capitalisation, spaces, and punctuation all matter.