exposed string_of_level and added level_of_string