Replacing spaces by underscores in category names