String^ str = tb_words->Text;
array<Char>^chars = { ' ', '\t' };
array<String^>^split = str->Split(chars);
int n;
bool br = false;
for each (String^ s in split) {
n = s->Length;
for (int r = 0; r < s->Length; r++) {
for (int i = 0; i < (n / 2); i++) {
if (s[i] != s[n - i - 1]) {
br = true;
break;
} else {
lb_pal->Items->Add("%" + s + "%");
br = true;
break;
}
}
if (br = true) {
br = false;
break;
}
}
}