Finds the longest palindrome in a given string using Sinatra