Trim output