added trim_single & trim_double