Google Sheets Substring Function In C