Numpy Array Has Javascript Substring Function In Mysql