trim and new line