Add method to class String and rename method to is_palindrome

Added method to the class String and rename to the method to is_palindrome.