simplify trim