I am loading a class from a string like this
Since you tagged the question with Rails, then you can do
"User".constantize # => User
remove_const works, but you need to call it from the object space where the constant is defined. Also, remember to pass a symbol as the constant name.