Fix controller class name check while application using namespace
Fix ucfirst for class name with namespace