try {
String isSimpleFunction = "m\n^" + simpleFunction + "$\n";
String containsSimpleFunction = "m\n" + simpleFunction + "\n";
String expression = value.substring(1); // remove initial "!"
expression = perl.substitute("s/\\[\\(/" + FB + "/g", expression);
expression = perl.substitute("s/\\)\\]/" + FE + "/g", expression);
String pre, func, post, tempname;
while (! perl.match(isSimpleFunction, expression)) {