Fixed an issue when whitespace is around the class name.