Override Array.toString() method to emulate the default behavior.