cut class name to last part