All pastes #552103 Raw Edit

Mine

public text v1 · immutable
·published 2007-06-09 03:07 UTC
rendered paste body
alias trim {
  var %a $1-
  while ($left(%a, 1) == $chr(32)) {
    var %a $right($1-, -1)
  }
  while ($right(%a, 1) == $chr(32)) {
    var %a $left($1-, -1)
  }
  return %a
}