Remove extra whitespace at beginning/end of blocks.