Total Number Of Substrings In A String