Answers.Body: <p>So this would be a better solution:</p>
  
  <p>{{ entry.title|replace('/^Nobel /', '') }}</p>
  
  <p>Thanks for the support Craft!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-01-09T20:00:50.633Z
Answers.Text: I was going to comment and tell you that would be a better solution, but that wasn't the question you asked you Twitter. ;)
Answers.UserDisplayName: Justin Kimbrell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-01-07T20:47:46.617Z
Answers.LastActivityDate: 2015-01-07T20:47:46.617Z
Answers.UserDisplayName: Johannes Lamers
Body: <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>
  
Tags: <titles>
Title: Trim part of title. Possible bug?
ThreadText: # 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. ;)  
  
  ---
  
  