only trimend on the code block.