Removes unnecessary spaces inside class example