Improve double to string conversion