trim function added to install modules file