better name trimming