# Trim variables in environment

**URL:** <https://community.postman.com/t/trim-variables-in-environment/2684>\
**Category:** Help Hub\
**Created:** [September 14, 2018, 1:53pm UTC](https://community.postman.com/t/trim-variables-in-environment/2684 "2018-09-14T13:53:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![postman2](https://avatars.discourse-cdn.com/v4/letter/p/e36b37/32.png) [@postman2](https://community.postman.com/u/postman2)\
**Post date:** [September 14, 2018, 1:53pm UTC](https://community.postman.com/t/trim-variables-in-environment/2684/1 "2018-09-14T13:53:10Z")

</div>

I suggest to trim variables when leaving the edit text field.  
Sometimes when names are copied from texts there is a new line at the end or even a space.  
When trying to use a variable, it is then necessary to specify “{{VARIABLE }}” or even “{{VARIABLE  
}}”.

So any whitespaces before or after the variable name should be trimmed.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 9, 2024, 2:34pm UTC](https://community.postman.com/t/trim-variables-in-environment/2684/2 "2024-12-09T14:34:45Z")

</div>

Closed on December 9, 2024, 2:34pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
