this only detects the possibility of palindrome