trimming all array elements