private String wrap(final String before, final String string,
            final String after) {
        if (string.isEmpty()) {
            return "";
        }
        return before + string + after;
    }
private String wrap ( final String before , final String string , final String after ) { if ( string . isEmpty ( ) ) { return "" ; } return before + string + after ; }
If the middle string has contents, append the strings.

@param before the before string
@param string the middle string
@param after the after string
@return the combined strings