Added inputStringArray function and totalArray function.