fix chunked_string.clear
adding cleanup in unique string