str = "hello@hi.com, blackode@medium.com" String.replace str,"@","#" // "hello#hi.com, blackode#medium.com"