Feature/collapse excessively repeated chars