Google Sheets Substring Function In Cpp