Fix trim function bug