Using trim before check cookie name