Created isPalindrome method in StringFunctions