# Variables not working after 1.302 Dashboards update because spaces in values are no longer trimmed

**URL:** <https://community.dynatrace.com/t/variables-not-working-after-1-302-dashboards-update-because-spaces-in-values-are-no-longer-trimmed/48510>\
**Category:** Product News\
**Tags:** variables, dashboards\
**Created:** [October 23, 2024, 3:38pm UTC](https://community.dynatrace.com/t/variables-not-working-after-1-302-dashboards-update-because-spaces-in-values-are-no-longer-trimmed/48510 "2024-10-23T15:38:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zietho](https://avatars.discourse-cdn.com/v4/letter/z/94ad74/32.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [October 23, 2024, 3:38pm UTC](https://community.dynatrace.com/t/variables-not-working-after-1-302-dashboards-update-because-spaces-in-values-are-no-longer-trimmed/48510/1 "2024-10-23T15:38:31Z")

</div>

**Why?**

We introduced a breaking change to make variable value replacements more predictable and less “bug/error” prone.

**What changed?**

- Previously, spaces were automatically trimmed for variable values for CSV and Code variables. So, any such spaces were not evaluated as part of the value during replacing referenced tiles.
- Starting with this release, spaces are not automatically trimmed but evaluated as part of the value to make variable replacements more predictable.

**How to solve it?**

To resolve this issue, trim spaces from data:

- For&nbsp; **Type** &nbsp;`CSV`, remove the spaces before and after a comma
- For&nbsp; **Type** &nbsp;`Code`, use the JavaScript&nbsp;[String.prototype.trim()](https://dt-url.net/zs03ubi)&nbsp;function
