small changes in get_category_string function

issue #14 should be finished with this commit