Filter out repeated string values within each chunk of an array.