Removing extensions from class names