kind/sub to string and vice versa converting