Visual Basic Empty String Javascript Substring Function In C