Bigquery Substring Method Javascript