introduce fq_smarttrim