trim returns a copy