trim: fixed an error in previous commit