in order to use commons string util we need to make a gwt.xml and bring in the source etc which is a bit tedious. Try to guava since we have guava-gwt already in pom. 

``` 
Joiner.on(separator).skipNulls().join(iterable); 
``` 

----- Original Message -----

> From: "David Mason" <notifications@github.com>
> To: "zanata/zanata-server" <zanata-server@noreply.github.com>
> Sent: Wednesday, April 30, 2014 1:34:54 PM
> Subject: Re: [zanata-server] Add multiple field search in editor (#426)

> In zanata-war/src/main/java/org/zanata/webtrans/shared/rpc/QueryParser.java:
> > +        for (; pos<text.length();) {
> > +            character = text.charAt(pos);
> > +            if (character == '\\' || character == '"') {
> > +                // strip out the character
> > +                text = text.substring(0, pos) + text.substring(pos + 1);
> > +            }
> > +            if (character != '"') {
> > +                // advance to next character, or if an escape character
> > was stripped
> > +                // skip over the character that was escaped
> > +                pos++;
> > +            }
> > +        }
> > +        return text;
> > +    }
> > +
> > +    private static String join (String[] values, String separator) {

> I tried to initially but got some nasty maven issues. Do we know whether
> StringUtils is compatible with GWT compilation?

> —
> Reply to this email directly or view it on GitHub .