def tokenize(str)
      raise ArgumentError, 'str must be a String' unless str.is_a?(String)

      j_instance.tokenize(str).to_ary
    end
def tokenize(str)
      raise ArgumentError, 'str must be a String' unless str.is_a?(String)

      j_instance.tokenize(str).to_ary
    end
Tokenizes a string

 @param [String] str string to tokenize
 @return [Array] array of string tokens