Moved trimElement from calamine to sanitize