FString::TrimStartAndEnd

Removes whitespace characters from the start and end of this string.