trim ps output