adding trim to new array