/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.regex.PatternSyntaxException;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		try {
			String str = "1000,\"1123\",aabb,\"aa,bb\",test,\"abcd,\"";
		    String resultString = str.replaceAll("(,\\\"|\\\",)+", "  ");
		    System.out.println(resultString);
		} catch (PatternSyntaxException ex) {
		    // Syntax error in the regular expression
		}
	}
}