Js Get Random String Javascript Substring Replace In Sql