I have an assigment to create a method that checks if a sentence is palindrome or not ignorinf spaces, dots, etc recursively in java?