7 lines
131 B
Text
7 lines
131 B
Text
|
|
import String;
|
||
|
|
|
||
|
|
public bool palindrome(str text){
|
||
|
|
text = replaceAll(toLowerCase(text), " ", "");
|
||
|
|
return text == reverse(text);
|
||
|
|
}
|