Strip whitespace off class names.