Added a new method stripExtra to the library.