firstVal = input.Lead_Name.getprefix(" ").subtext(0,1);
lastVal = input.Lead_Name.getsuffix(" ").subtext(0,1);
stringval = (firstVal + lastVal).toUppercase();
contactObj = Contact_Form[ID != null];
checkPreffix = Contact_Form[Client_id == stringval];
//collection
if(contactObj.count() == 0 && checkPreffix == checkPreffix)
{
idVal = stringval + "-" + 1;
//info idVal;
}
else if(contactObj.count()>=1)
{
contactsObj = Contact_Form[ID != null].Client_id sort by Added_Time desc;
val = contactsObj.getsuffix("-");
temp = val.toLong();
temp = temp + 1;
idVal = stringval + "-" + temp;
info idVal;
}