Hi
you can do the following:

public static string BuildExcelConnectionString(string Filename, bool FirstRowContainsHeaders)
{
return...