Added a new function in document CORE which creates a slug from a string