moved useful methods from Generator to separate extended Str class
fixed erroneous classes generation when --entity option class is namespaced