Added toStringArray and length methods