worked issue with JSON.stringify and RegExp