# Check string or text: can be a filename?

**URL:** <https://forums.unrealengine.com/t/check-string-or-text-can-be-a-filename/348867>\
**Category:** Community & Industry Discussion\
**Tags:** string, check, unreal-engine, characters, file, question\
**Created:** [February 27, 2016, 4:40pm UTC](https://forums.unrealengine.com/t/check-string-or-text-can-be-a-filename/348867 "2016-02-27T16:40:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HungryDoodles](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@HungryDoodles](https://forums.unrealengine.com/u/HungryDoodles)\
**Post date:** [February 27, 2016, 4:40pm UTC](https://forums.unrealengine.com/t/check-string-or-text-can-be-a-filename/348867/1 "2016-02-27T16:40:08Z")

</div>

There is partially funny moment: by entering name for gun preset “RailGun(10000km/s)” I wanted to save file “RailGun(10000km/s)”, but got folder “RailGun(10000km” with file “s).STP” inside it.  
And so I need to filter out text, that cannot be saved as file.

If I will write my own C++ function for that there is slight chance that I will reinvent the wheel. Usually that ends up pretty badly, but I don’t think that it’s that case. (I just remembered what there was a mess with GameMode…)

**What characters of the string must not be in filename? Is there any blueprint function to check that or I need to write it on myself?** I can check what characters are REALLY must not be in file name, by trying rename file to “?”, but I can miss something.  
For e.g. Russian characters are fully supported, even pain-in-\*\*\*-for-ASCII 33-th character ‘Ё’ is writeble (surprisingly works thru FString), and for the first time japanese section from “suggested questions” in my inbox become useful: Japanese symbols also writable.  
Oh, come on! I just saved text from this page: [I don’t even know how it sounds](https://bpy.wikipedia.org/wiki/%E0%A6%AA%E0%A6%AF%E0%A6%BC%E0%A6%B2%E0%A6%BE_%E0%A6%AA%E0%A6%BE%E0%A6%A4%E0%A6%BE)  
Another question: **Is there any restrictions on FString?**
