Deal with case when kwarg has no value. Assumes empty string as value in the case of kw=, --kw, --kw=, -kw, -kw= (all cases)