# Projucer kills space char for plug-in Ids

**URL:** <https://forum.juce.com/t/projucer-kills-space-char-for-plug-in-ids/25888>\
**Category:** The Projucer\
**Created:** [January 10, 2018, 7:30pm UTC](https://forum.juce.com/t/projucer-kills-space-char-for-plug-in-ids/25888 "2018-01-10T19:30:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ttg](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ttg/32/14456_2.png) [@ttg](https://forum.juce.com/u/ttg)\
**Post date:** [January 10, 2018, 7:30pm UTC](https://forum.juce.com/t/projucer-kills-space-char-for-plug-in-ids/25888/1 "2018-01-10T19:30:28Z")

</div>

Hi,  
It seems like Projucer decide to truncate spaces even if they’re explicit.  
Let’s say I want my PlugIn Code to be "ABC ".  
I’m not aware of limits (and saw at least one product that does that across AU / VST / VST3 / RTAS).

If you’ll save "ABC " it will be save properly but the space will be truncated from the AppConfig.h

Even trying to trick it with " " won’t work.

Thanks.

---

<div class="post-metadata">

**Author:** ![mcmartin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mcmartin/32/7432_2.png) [@mcmartin](https://forum.juce.com/u/mcmartin)\
**Post date:** [January 10, 2018, 8:58pm UTC](https://forum.juce.com/t/projucer-kills-space-char-for-plug-in-ids/25888/2 "2018-01-10T20:58:01Z")

</div>

There are 7 places in Projucer’s code where there is:

```auto
.trim().substring (0, 4)

```

- extras/Projucer/Source/ProjectSaving/jucer\_ProjectExport\_Xcode.h (6 occurences)
- extras/Projucer/Source/ProjectSaving/jucer\_ProjectSaver.cpp (1 occurence)

@ed95 @jules it might make sense to replace these calls to `.trim()` by calls to `.trimStart()`, since `.substring (0, 4)` already takes care of chopping the end of the string.

---

<div class="post-metadata">

**Author:** ![ed95](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/ed95/32/7635_2.png) [@ed95](https://forum.juce.com/u/ed95)\
**Post date:** [January 11, 2018, 9:06am UTC](https://forum.juce.com/t/projucer-kills-space-char-for-plug-in-ids/25888/3 "2018-01-11T09:06:57Z")

</div>

OK, I’ve removed the calls to `trim()` so you can use spaces in your IDs
