* @param separator
   * @return Cons
   */
  public static Cons splitString(String input, char separator) {
    { int length = input.length();
      int start = 0;
      int end = 0;
      Cons strings = Stella.NIL;

      loop000 : for (;;) {
        end = Native.string_position(input, separator, start);
        strings = Cons.cons(StringWrapper.wrapString(Native.string_subsequence(input, start, end)), strings);
        if ((end != Stella.NULL_INTEGER) &&
            (end < (length - 1))) {
          start = end + 1;
        }
        else {
          break loop000;
        }
      }
      return (strings.reverse());
    }
  }