Update ChatFilter.java

Still throwing errors. This time string index out of bounds