new way to remove double separators