break if index is a string