code: public void setFilter(Function<String, String> filterFunction)
  	{
  		this.filterFunction = filterFunction;
  		this.text = new StringBuilder(this.filterFunction.apply(this.text.toString()));
  	}
docs: Sets the function that applies to all incoming text. Immediately applies filter to current text.
  
  @param filterFunction the function