<p>So this would be a better solution:</p>

<p>{{ entry.title|replace('/^Nobel /', '') }}</p>

<p>Thanks for the support Craft!</p>

CC BY-SA 3.0
2015-01-09T20:00:50.633Z
I was going to comment and tell you that would be a better solution, but that wasn't the question you asked you Twitter. ;)
Justin Kimbrell
CC BY-SA 3.0
2015-01-07T20:47:46.617Z
2015-01-07T20:47:46.617Z
Johannes Lamers
<p>I have a title field with value: "Nobel Participatie Portefeuille".</p>

<p>On my template I want to trim the word "Nobel", You can do this with twig trim.</p>

<p><strong>so this is my code:</strong></p>

<p>{{ entry.title | trim('Nobel ') }}</p>

<p>But my output is "Nobel Cashflow Portefeui" (missing "lle")</p>

<p>Other words work normal. </p>

<titles>
Trim part of title. Possible bug?
# Trim part of title. Possible bug?

(Asked by: username_0 on 2015-01-07)

I have a title field with value: "Nobel Participatie Portefeuille".

On my template I want to trim the word "Nobel", You can do this with twig trim.

**so this is my code:**

{{ entry.title | trim('Nobel ') }}

But my output is "Nobel Cashflow Portefeui" (missing "lle")

Other words work normal.

**Tags:** titles

---

## 1 answers

### Answer by username_0 on 2015-01-07. Score: 2

So this would be a better solution:

{{ entry.title|replace('/^Nobel /', '') }}

Thanks for the support Craft!

> **Comments:**
> **username_1**: I was going to comment and tell you that would be a better solution, but that wasn't the question you asked you Twitter. ;)  

---

