trim function removed