Adjustments.

Added "splitindex" method.  it splits a string by a separator and
chooses one of the results by index.