Adding whitespace and maxWords methods to the library