Fix bug when building the categories. Strip 'em out of whitespaces!