Update slug routine to use regex