trim links