trim and add comment