forIndex method replace getName for toString