added 2 solutions for checking if given string is palindrome or not based on 2 ideas from internet