Store all substrings in a vector str starting with the first character of the given string
var substring = " " ; var j = alphaIndex [ s [ 0 ] . charCodeAt ( 0 ) - ' ' . charCodeAt ( 0 ) ] [ i ] ; for ( ; j < n ; j ++ ) {