Okay, I think it's caused by how string.ToLower creates different results in different countries. I changed it to string.ToLowerInvariant, so it'll be consistent.
I can't be 100% sure if that fixed it. Could you tell me if it worked?
Maybe double check and do some backspaces before entering something. I had the issue that sometimes there was a line break before the text i put in, i believe that caused the same issue for me.