trim array return from update