parseSetCardCommand function is rewritten using parser combinators.