import re


def slugify(text):
    """Replaces whitespace with dashes and removes other special symbols."""
    concatenated = re.sub('\s+', '-', text.lower())
    return re.sub('[^A-Za-z0-9_-]', '', concatenated)