elseLow = "True" ' all other chars to LowerCase? "True" or "False"
reverse = "False" ' reverse whole text? "True" or "False"
txt = "statistics Is lIKe a bikini:"+ tab +"everyThiNG inSIGnificant iS vIsIbLe,"+ lf +"buT the interesTING aNd decisivE"+ crlf +"reMAInS hIdDeN."
For n = 1 To len
chr = Text.GetSubText(txt, n,1)
If n = 1 Or Array.ContainsValue(ws, Text.GetCharacterCode(Text.GetSubText(txt, n-1,1))) Then
chr = Text.ConvertToUpperCase(chr)
ElseIf elseLow Then
chr = Text.ConvertToLowerCase(chr)
EndIf
If reverse Then
str = Text.Append(chr, str)
Else
str = Text.Append(str, chr)
EndIf
EndFor
TextWindow.WriteLine(str +lf)