> For the complete documentation index, see [llms.txt](https://sagar-r-kothari.gitbook.io/blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sagar-r-kothari.gitbook.io/blog/_posts/2021-02-08-android-hard-space.md).

# 2021-02-08-Android-hard-space

I wanted to keep spaces as prefix and suffix to my app name.

Here is what string value looked like earlier.

```markup
<string name="app_name"> My App Name </string>
```

Unfortunately, strings get trimmed automatically. So, what do we do to keep the space by force?

A simple solution would injecting `&#160;`.

Here is how string value would look like after it.

```markup
<string name="app_name">&#160;My App Name&#160;</string>
```
