Added a trim function declaration for ZSH and BASH