when the trim function doesn't work