Simplified parse-token helper by using contains?