public void OnGenerateAlphabeticStrings() { if (includeSpacesToggle.isOn) { if (hasCasing) { GenerateStrings(() => _random.AlphabeticString(stringLength, casing, ' ', spaceFrequency)); } else { GenerateStrings(() => _random.AlphabeticString(stringLength, ' ', spaceFrequency)); } } else { if (hasCasing) { GenerateStrings(() => _random.AlphabeticString(stringLength, casing)); } else { GenerateStrings(() => _random.AlphabeticString(stringLength)); } } }