simple string reverser using sinatra