public static string deleteBOM(string input) { try { CustomCode x = new CustomCode(); return(x.deleteBOM(input)); } catch (Exception ex) { string strErr = ex.Message + ex.StackTrace; return("[]"); } }