bug fix: the cookie maintain function doesnt trim the new setted cookie string