Adds a function to limit chars/words.