* @return String
   */
  public static String stringTrim(String string) {
    { int start = 0;
      int last = string.length() - 1;
      int end = last;

      while ((start <= end) &&
          (Stella.$CHARACTER_TYPE_TABLE$[(int) (string.charAt(start))] == Stella.KWD_WHITE_SPACE)) {
        start = start + 1;
      }
      while ((end > start) &&
          (Stella.$CHARACTER_TYPE_TABLE$[(int) (string.charAt(end))] == Stella.KWD_WHITE_SPACE)) {
        end = end - 1;
      }
      if ((start > 0) ||
          (end < last)) {
        return (Native.string_subsequence(string, start, end + 1));
      }
      else {
        return (string);
      }
    }
  }