added trim util