Improve integer to string conversion and add benchmarks