trying to get splitString function to loop through comments array and split the commentBody text into separate words and provide a count