Changing a string to Initial Caps

Hi,

I’d like to change a string to Initial Caps

so, ‘The cat sat on the mat’

would be changed to:

‘The Cat Sat On The Mat’.

Python has a .title() method which does this, but within Dynamo it comes up known.

Is there another method I can use?

Thanks.

You can still use a pretty simple python as well:

2 Likes

Viktor,

That’s exactly what I was trying, it didn’t work when I first tried it saying that .title() didn’t exist.

When it try it now it works just fine.

Obviously I’m having a bad day!

Thanks.