Answers.Body: <p>If you are attempting to get a count of the string, you can use Twigs dump function.</p>
  
  <p>{{ dump(myString) }}</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-14T17:23:47.217Z
Answers.Text: This only works in devMode from what I've read. Never tried it outside of devMode, though.
Answers.UserDisplayName: Bill Criswell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-14T09:16:11.523Z
Answers.LastActivityDate: 2014-06-14T09:16:11.523Z
Answers.UserDisplayName: Jason McCallister
Answers.Body: <p>Twig has a <a href="http://twig.sensiolabs.org/doc/filters/length.html">length filter</a> that can help you with that:</p>
  
  <pre><code>{% set stringLength = "Simple String" | length %}
  </code></pre>
  
  <p>Note that this also works on arrays to give you the number of items in the array.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-06-14T06:53:40.967Z
Answers.LastActivityDate: 2014-06-14T06:53:40.967Z
Answers.UserDisplayName: Josh Angell
Body: <p>Lets say I have a simple string:</p>
  
  <pre><code>{% set string = "Simple String" %}
  </code></pre>
  
  <p>How to get number of characters of my string?</p>
  
Tags: <string>
Title: How to check how many characters there are in my string?
ThreadText: # How to check how many characters there are in my string?
  
  (Asked by: username_0 on 2014-06-14)
  
  Lets say I have a simple string:
  
  ```
  {% set string = "Simple String" %}
  
  ```
  
  How to get number of characters of my string?
  
  **Tags:** string
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2014-06-14. Score: 8 | Accepted answer
  
  Twig has a [length filter](http://twig.sensiolabs.org/doc/filters/length.html) that can help you with that:
  
  ```
  {% set stringLength = "Simple String" | length %}
  
  ```
  
  Note that this also works on arrays to give you the number of items in the array.
  
  
  ---
  
  ### Answer by username_1 on 2014-06-14. Score: 2
  
  If you are attempting to get a count of the string, you can use Twigs dump function.
  
  {{ dump(myString) }}
  
  > **Comments:**
  > **username_2**: This only works in devMode from what I've read. Never tried it outside of devMode, though.  
  
  ---
  
  