Correcting bug in sanitize name