Updated PalindromeCheck, replaced GetSubstring with SPL substr.