import String; public bool palindrome(str text){ text = replaceAll(toLowerCase(text), " ", ""); return text == reverse(text); }