add trim to library import