Converts from a text to a index
the string to be converted to an index
index value
true if a is an index
Converts from a text to a index