MapToString could be called with big map, therefore we could receive an issue with variable copy, we should use pointers instead