how whould i remove the underscore in search when there is no underscore in command. i came this far but cant seem to figure out how to remove the underscore without removing at a specific index or removing all. The search is dynamic normally but for demonstration its static here.
var updatedSearch = "Debug_Log_Test"
var updatedCommand = "DebugLog_Test"
if (updatedSearch.Any(ch => ch != '_'))
{
if(updatedCommand.Any(ch => ch == '_'))
{
remove the underscore from the search but only at the index where at
}
}

