# Remove space in personalization token for empty fields

**URL:** <https://community.hubspot.com/t/remove-space-in-personalization-token-for-empty-fields/116464>\
**Category:** HubSpot Ideas\
**Tags:** snippets, sequences, sales-documents, properties, marketing-email\
**Created:** [September 17, 2024, 10:08am UTC](https://community.hubspot.com/t/remove-space-in-personalization-token-for-empty-fields/116464 "2024-09-17T10:08:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adriane](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@Adriane](https://community.hubspot.com/u/Adriane)\
**Post date:** [September 17, 2024, 10:08am UTC](https://community.hubspot.com/t/remove-space-in-personalization-token-for-empty-fields/116464/1 "2024-09-17T10:08:54Z")

</div>

I’d like to propose an improvement to the way personalization tokens handle empty fields, particularly for **salutations in marketing emails and 1on1 templates**.

**Current Situation:**  
We’re using a personalization token for the first name field in our email salutations. When a contact doesn’t have a first name, we want the salutation to default to just “Good Morning” without any extra spaces. However, the current behavior adds an unwanted space, resulting in “ **Good Morning ,** ” (note the space before the comma).

**Proposed Improvement:**  
It would be incredibly helpful if HubSpot could implement smarter handling of empty personalization tokens. Specifically:  
When a personalization token is empty and no default value is set, HubSpot should **automatically remove any trailing spaces and punctuation associated with that token**.

Alternatively, provide an **option to specify how empty tokens should be handled** (e.g., remove associated punctuation, keep as is, etc.).

This improvement would enhance the professionalism of our communications and save time that’s currently spent on tedious workarounds.

---

<div class="post-metadata">

**Author:** ![MBrown62](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@MBrown62](https://community.hubspot.com/u/MBrown62)\
**Post date:** [July 1, 2025, 8:32pm UTC](https://community.hubspot.com/t/remove-space-in-personalization-token-for-empty-fields/116464/2 "2025-07-01T20:32:03Z")

</div>

Another use case: make & model of a car. We ask the make, then depending on that response, use different model fields in order to limit the options to the make they already gave. But now I can’t just print the make & model into an email - because there are a dozen model fields, and if all the empty ones are spaces I will end up with something like “Service your Subaru Forester today at our dealership” which looks ridiculous.

---

<div class="post-metadata">

**Author:** ![MBrown62](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@MBrown62](https://community.hubspot.com/u/MBrown62)\
**Post date:** [July 2, 2025, 11:25am UTC](https://community.hubspot.com/t/remove-space-in-personalization-token-for-empty-fields/116464/3 "2025-07-02T11:25:11Z")

</div>

Does this form work? My replies don’t show up
