add the function of Trims