properly constantize class string