Deal with white space and tabs in cookie