Issue with capitalization

Describe the problem/error/question

I am getting an event from gcal where the section I need is in all caps but I need the output to be title case.

input: “IN PERSON”
expected output: “In Person”
output: “in Person”

Every other instance that I am using .toTitleCase works fine.

Idk if any of that makes sense but I’m at my wits end, any help will be much appreciated.

In the screenshot it shows

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:1.63.4,
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system:

Hi @buttercup.ck

What exactly is the issue, as in looking at your screenshot, it seems to work as expected. Feel free to share your workflow to help demonstrate the problem.

Tip for sharing your workflow in the forum

Pasting your n8n workflow


Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.

```
<your workflow>
```

Make sure that you’ve removed any sensitive information from your workflow and include dummy data or pinned data as much as you can!


This is working as expected for me.

The only thing I can think of is there might be a hidden character at the start of the string. Can you try with other input and manually setting the summary value.