added function that checks if a string is a palindrom, and another function which returns all palindroms from a text file