added name sanitizing function