Fix not trimming whitespace from classname