next attempt at trim. Not working