### Question:
Palindrome { public boolean isPalindromeUsingStringBuilder(String text) { String clean = text.replaceAll("\\s+", "").toLowerCase(); StringBuilder plain = new StringBuilder(clean); StringBuilder reverse = plain.reverse(); return (reverse.toString()).equals(clean); }  boolean isPalindrome(String text); boolean isPalindromeReverseTheString(String text); boolean isPalindromeUsingStringBuilder(String text); boolean isPalindromeUsingStringBuffer(String text); boolean isPalindromeRecursive(String text); boolean isPalindromeUsingIntStream(String text);  }### Answer:
@Test public void whenStringBuilderWord_shouldBePalindrome() { for (String word : words) assertTrue(palindrome.isPalindromeUsingStringBuilder(word)); }
@Test public void whenStringBuilderSentence_shouldBePalindrome() { for (String sentence : sentences) assertTrue(palindrome.isPalindromeUsingStringBuilder(sentence)); }