How to check if String is Palindrome in Java 