Capitalize string of words except for prepositional words
问题 I am using the code below to take a string entered from a text box, and convert to capital case, except for words like (the, and, an, as, to, or, on) etc. Issue #1: I want the first word of the string to always be capitalized regardless of what the word is. Issue #2: The word spacing is not correct when the string is put back together. xText = queryForHTML xTextSplit = split(xText, " ") for each item in xTextSplit xWord = item if lcase(item) = "the" or lcase(item) = "and" or lcase(item) = "an