add SetlevelFromString method