trim training whitespace