To strip domain and allow max digit to 10 I am using this condition :
if (sender.indexOf(\'@\') != -1 ) { sender = sender.substring(0, Math.min(sender.in