public static Boolean isPalindrome(String s) { return s.equals((new StringBuilder(s)).reverse().toString()); }