Insert string before file extension in C++

What’s the best way to insert a string before the file extension?
Example:
something.extension
to
something_addedString.extension

	FString FileName = "something.extension";
	FString NameToInsert = "_addedString";
	int32 index;
	if(FileName.FindLastChar('.', index))
	{
		FileName.InsertAt(index, NameToInsert);
	}

Hope this helps.