toString methods optimized