Typescript Remove Characters From String Sql Function