private static String[] addContact(String[] tk) { Contact c; if (tk.Length < 4) { return(str2arr("Missing arguments. Usage: addContact <extUserIDorEmail> <extServiceID> <nameContact>")); } c = sm.addContact(tk[1], int.Parse(tk[2]), tk[3]); return(c == null?str2arr("Error!") : str2arr("Contact added with ID: " + c.contactID)); }