trim code string in detail page.