Using a string in unreal

I am trying to add something so that the player can name themselves and a few other things whatever they like. However, Visual Studio is not recognizing the type string, even after I have added #include . I also cannot use void in this situation because I am adding it as a parameter.

It can be cause by the Intellisense not updating/parsing the current include files, you can try to write a simple code like this string mystring = "Hello!"; and it should compile fine!.

Anyway unreal has also the FString class, take a look also here for type conversion.