Add trimming to inserted name