adds some basic input sanitization to items - trims whitespace and strips trailing slashes. TODO: full sanitization of inputs