added trim argument to mgsub