String.prototype.replaceAll() not working [duplicate]