Add a limit of the max number of characters that can be extracted to avoid sending applications out of memory with very large documents