added toStringArray function