toString performance improved