Index and count must refer to a location within the string. Parameter name: count