String (String command, String... parameters) { String[] escapedParameters = new String[parameters.length]; for (int i = 0; i < escapedParameters.length; i++) { escapedParameters[i] = escape(parameters[i]); } return String.format(command, (Object[])escapedParameters); }