// for example rokas.byrookas@byrookas.com const firstname = a.slice(0,a.indexOf('@')).split('.')[0] const Lastname = a.slice(0,a.indexOf('@')).split('.')[a.slice(0,a.indexOf('@')).split('.').length - 1]