I have a string |0|0|0|0
|0|0|0|0
but it needs to be 0|0|0|0
0|0|0|0
How do I replace the first character (\'|\') with (\'\'
\'|\'
\'\'
var newstring = oldstring.substring(1);