Reads in a string and finds the longest palindrome