gsub call should come *after* the check for '@' symbol