You could probably speed this up with one filterNot and a regex rather than 4 in a row.