# Substring losing spaces

**URL:** <https://www.finalbuilder.com/forums/t/substring-losing-spaces/2718>\
**Category:** Bugs\
**Created:** [November 27, 2006, 2:44am UTC](https://www.finalbuilder.com/forums/t/substring-losing-spaces/2718 "2006-11-27T02:44:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevage](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/bc8723/32.png) [@stevage](https://www.finalbuilder.com/forums/u/stevage)\
**Post date:** [November 27, 2006, 2:44am UTC](https://www.finalbuilder.com/forums/t/substring-losing-spaces/2718/1 "2006-11-27T02:44:04Z")

</div>

Substring is converting " " into “” for the End string argument (and probably others) when the file is saved/reloaded. Not good if you’re trying to match the text before the first space…  
  
I guess the workaround is to store a space in a variable and match that.  
  
Steve

---

<div class="post-metadata">

**Author:** ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)\
**Post date:** [November 27, 2006, 5:45am UTC](https://www.finalbuilder.com/forums/t/substring-losing-spaces/2718/2 "2006-11-27T05:45:57Z")

</div>

Hi Steve,  
  
Yep, thanks - reproduced and fixed for next build. Should be in a day or two while we do some internal testing with the change.  
  
.t8

---

<div class="post-metadata">

**Author:** ![stevage](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/bc8723/32.png) [@stevage](https://www.finalbuilder.com/forums/u/stevage)\
**Post date:** [November 27, 2006, 5:55am UTC](https://www.finalbuilder.com/forums/t/substring-losing-spaces/2718/3 "2006-11-27T05:55:10Z")

</div>

No rush, the workaround works fine 🙂  
  
Steve
