inserted two methods which do the slugging for text --> url