Added support for ensuring tokens that are strings