# Escaping string path

**URL:** <https://discourse.processing.org/t/escaping-string-path/17549>\
**Category:** Beginners\
**Created:** [February 4, 2020, 5:23pm UTC](https://discourse.processing.org/t/escaping-string-path/17549 "2020-02-04T17:23:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![plux](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@plux](https://discourse.processing.org/u/plux)\
**Post date:** [February 4, 2020, 5:23pm UTC](https://discourse.processing.org/t/escaping-string-path/17549/1 "2020-02-04T17:23:18Z")

</div>

Hello,  
I have the following string that gives me error (replaced some with “abc” for privacy)

`String dir = "D:\OneDrive - Abc abc abc abc \ABC\processing-3.0.1\abc\CsvPaddingAutomator";`

Error:  
`Not expecting symbol 'O', which is LATIN CAPITAL LETTER O.`

how can I escape it correctly?

---

<div class="post-metadata">

**Author:** ![anon68884268](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@anon68884268](https://discourse.processing.org/u/anon68884268)\
**Post date:** [February 4, 2020, 5:50pm UTC](https://discourse.processing.org/t/escaping-string-path/17549/2 "2020-02-04T17:50:33Z")

</div>

Simply use `\\` for this case.  
This would mean in this path:

```auto
String dir = "D:\\OneDrive - Abc abc abc abc \\ABC\\processing-3.0.1\\abc\\CsvPaddingAutomator";

```

In case you have no fun with replacing it by hand, you can use Ctrl-F to search `\` and replace it by `\\`.
