private static string FormatName(string oldName) { if (oldName.Any(c => char.IsUpper(c))) { //nothing to be done here return(oldName); } else { return(EngineObject.GetAlternate(oldName)); } }