# Error on Saving File, if the string has chars sourced from the key variable

**URL:** <https://discourse.processing.org/t/error-on-saving-file-if-the-string-has-chars-sourced-from-the-key-variable/13731>\
**Category:** Processing for Android\
**Created:** [August 31, 2019, 9:20pm UTC](https://discourse.processing.org/t/error-on-saving-file-if-the-string-has-chars-sourced-from-the-key-variable/13731 "2019-08-31T21:20:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [September 1, 2019, 4:07pm UTC](https://discourse.processing.org/t/error-on-saving-file-if-the-string-has-chars-sourced-from-the-key-variable/13731/3 "2019-09-01T16:07:10Z")

</div>

Hi. I think This is related to [this](https://discourse.processing.org/t/special-characters-problems-in-apde/13433) , a topic from @Eeyorelife I tried to answer.  
But when I write “println(s.length());” within mousePressed() I just get a string length of 1. I was expecting two characters because when I hit a backspace the letter will appear.

---

_[View the full topic](https://discourse.processing.org/t/error-on-saving-file-if-the-string-has-chars-sourced-from-the-key-variable/13731)._
