trim headers