[string] How to check if the given string is palindrome?