Sinatra and string transformation HW