Added functions to trim whitespaces, as well as print the memory used by
any object.