private int getFirstArgEndIndex() {
		int l = arg.length();
		// An empty string can't have any arguments
		if(l == 0) {
			return -1;
		}
		int i;
		for(i = 0; i < l; i++) {
			char c = arg.charAt(i);
			if(c == '\"') {
				i = getSectionEndIndex(i, '\"');
			} else if (c == '[') {
				i = getSectionEndIndex(i, ']');
			} else  if(c <= 32) {
				return i;
			}
			if(i == -1) return i;
		}
		// In this case we reached the end of the String without encountering any
		// characters that were no white spaces
		return i;
	}