# Strings and spaces

**URL:** <https://forum.juce.com/t/strings-and-spaces/4442>\
**Category:** General JUCE discussion\
**Created:** [October 28, 2009, 10:21am UTC](https://forum.juce.com/t/strings-and-spaces/4442 "2009-10-28T10:21:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![masshacker](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/masshacker/32/650_2.png) [@masshacker](https://forum.juce.com/u/masshacker)\
**Post date:** [October 28, 2009, 10:21am UTC](https://forum.juce.com/t/strings-and-spaces/4442/1 "2009-10-28T10:21:23Z")

</div>

I noticed that juce hates space characters in strings.  
In Jost (juced’ daw) there’s a browser that lets theuser browse harddisks and load plugins inside a graph.  
If a plugin has a space inside its name this won’t work.  
And also if the space is inside a directory name (program files).

Is there a way to deal with this?

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [October 28, 2009, 11:05am UTC](https://forum.juce.com/t/strings-and-spaces/4442/2 "2009-10-28T11:05:14Z")

</div>

> [@](#):
>
> I noticed that juce hates space characters in strings.

Maybe just a tiny bit of an over-generalisation…?

Of course juce’s file and string classes have no problem with filenames containing spaces - or practically no apps would work at all. Presumably this is a bug in jost.

---

<div class="post-metadata">

**Author:** ![masshacker](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/masshacker/32/650_2.png) [@masshacker](https://forum.juce.com/u/masshacker)\
**Post date:** [October 28, 2009, 7:48pm UTC](https://forum.juce.com/t/strings-and-spaces/4442/3 "2009-10-28T19:48:21Z")

</div>

Allright, I solved it.  
I was using addTokens to a stringArray.  
So the code was breaking the filename into pieces…  
Forget this post=)  
And thank you, your library is awesome!
