Java 21 Check If String Is Palindrome