Cast s_index to string in print statements