stripping values to ensure integrity