These are some examples of the Capitalize function:
OriginalStr: THIS IS A TEST
Capitalized: This Is A Test
ExpectedStr: This Is A Test
OriginalStr: “THIS IS A ‘TEST'”
Capitalized: “this Is A ‘test'”
ExpectedStr: “This Is A ‘Test'”
OriginalStr: (THIS IS A ‘TEST’)
Capitalized: (this Is A ‘test’)
ExpectedStr: (This Is A ‘Test’)
It appears as if the Capitalize function does not do any checks to see if the capitalization is done on a letter or a delimiter.