Changed type of index_type char/int to string.