updates to Assignment 4.1

updated to include a new if statement so that if the string does not end with the stringSeparator it will return the last characters into the array.