FString::TrimChar

Returns a copy of this string with wrapping CharacterToTrim removed (removes at max one instance in the beginning and end of the string).