IndexOf with string length > 1 not working