Modify An Array In Place Javascript Substring Function In Excel