Visual Basic Empty String Javascript Substring Function In Python