trimbeforeadd