Re-implements ToString method.