Why does making placeholder variable that I pass in a function give me a error?

You shouldn’t use the standard library with Unreal Engine. Use FString instead.