fwiw, here is what I came up with.

If anybody knows an elegant way to do this, much appreciated.

|str f l r|
str := 'complexgrammar'.
f := (str from: 1 to:(str  findSubstring: 'grammar' in:str startingAt: 1 matchTable: ( String classPool at: #CaseSensitiveOrder))  -1).
l := (str from: (str  findSubstring: 'grammar' in:str startingAt: 1 matchTable: ( String classPool at: #CaseSensitiveOrder)) to:(str size)).
r := (f capitalized)  , ' ' , (l capitalized) .
r inspect



---- On Mon, 18 Sep 2023 09:16:02 -0400 gettimothy via Squeak-dev <squeak-dev@lists.squeakfoundation.org> wrote ---

Hi folks.

I am trying to figure out how to separate some words in a string 'complexgrammar'   so I can print Complex Grammar.

looking for solutions, I find Tokenish, a class that does nothing with no comment.

I think it may be a former colleague of mine.