public List<String> parseCommand(String command)
	{
		List<String> params = new ArrayList<String>();
		Pattern regex = Pattern.compile("[^\\s\"']+|\"([^\"]*)\"|'([^']*)'");
		Matcher regexMatcher = regex.matcher(command);
		while (regexMatcher.find()) {
			if (regexMatcher.group(1) != null) {
				// Add double-quoted string without the quotes
				params.add(regexMatcher.group(1));
			} else if (regexMatcher.group(2) != null) {
				// Add single-quoted string without the quotes
				params.add(regexMatcher.group(2));
			} else {
				// Add unquoted word
				params.add(regexMatcher.group());
			}
		}
		return params;
	}