Don't trim the class name twice. Do it once and store it in a variable.