Fixed excessive exclamationmarks not being caught
fixed potential IndexOutOfBoundsException when handling chat