flip id and title string