Implemented `trim` rule.