replaced all arrayTostring methods with one super method